If the party injured appears before the court to which the depositions are required to be returned, at any time before trial, and acknowledges that he has received satisfaction for the injury, the court and the prosecutor may, in their discretion, on payment of the costs incurred, order all proceedings to be stayed upon the prosecution, and the defendant to be discharged therefrom; but in such case the reasons for the order must be set forth therein, and entered on the minutes. The order is a bar to another prosecution for the offense that was originally charged.
Idaho Code § 19-3402