1. "The attorney for the state may by leave of court file a dismissal of an indictment, information or complaint, and the prosecution shall thereupon terminate. Such a dismissal may not be filed during the trial without the consent of the defendant." W.Va.R.Criv.P. 48(a).