If a defendant dies following the entry of a plea of guilty or nolo contendere or a finding of guilt at trial and the time for taking an appeal has not expired, the court may order substitution of the proper parties for the purpose of an appeal. The personal representative of the defendant's estate may make a motion for substitution, together with a notice of hearing, and shall serve the same on the prosecuting attorney.
SDCL 23A-27-50