Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Whoops, make sure the game is actually open before clearing cheats
Browse files Browse the repository at this point in the history
  • Loading branch information
JKAnderson committed Mar 14, 2018
1 parent 662bcf3 commit 522bcdd
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions DS Gadget/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -786,19 +786,22 @@ private void createItem()
private void initCheats() { }
private void saveCheats()
{
dsProcess.SetAllNoMagic(false);
dsProcess.SetNoDead(false);
dsProcess.SetExterminate(false);
dsProcess.SetAllStamina(false);
dsProcess.SetAllAmmo(false);
dsProcess.SetHide(false);
dsProcess.SetSilence(false);
dsProcess.SetAllNoDead(false);
dsProcess.SetAllNoDamage(false);
dsProcess.SetAllNoHit(false);
dsProcess.SetAllNoAttack(false);
dsProcess.SetAllNoMove(false);
dsProcess.SetAllNoUpdateAI(false);
if (dsProcess != null)
{
dsProcess.SetAllNoMagic(false);
dsProcess.SetNoDead(false);
dsProcess.SetExterminate(false);
dsProcess.SetAllStamina(false);
dsProcess.SetAllAmmo(false);
dsProcess.SetHide(false);
dsProcess.SetSilence(false);
dsProcess.SetAllNoDead(false);
dsProcess.SetAllNoDamage(false);
dsProcess.SetAllNoHit(false);
dsProcess.SetAllNoAttack(false);
dsProcess.SetAllNoMove(false);
dsProcess.SetAllNoUpdateAI(false);
}
}

private void reloadCheats()
Expand Down

0 comments on commit 522bcdd

Please sign in to comment.