Though not specifically described in this part, a person subject to this title who engages in any disorder and neglect to the prejudice of good order and discipline in the State military forces or who engages in any conduct of a nature to bring discredit upon the State military forces shall be punished as a court-martial may direct. However, where an act or omission constitutes an offense that violates both this part and the criminal laws of the state where the offense occurs or criminal laws of the United States, jurisdiction of the military court will be determined in accordance with section 5104 (relating to subject matter jurisdiction) .
51 Pa.C.S. § 6045