#include "psxcommon.h"
#include "r3000a.h"
#include "psxmem.h"
+#include "misc.h"
#include "cheat.h"
}
}
- Cheats[NumCheats].Descr = strdup(descr[0] ? descr : _("(Untitled)"));
Cheats[NumCheats].Enabled = 0;
Cheats[NumCheats].WasEnabled = 0;
Cheats[NumCheats].First = NumCodes;
return -1;
}
+ Cheats[NumCheats].Descr = strdup(descr[0] ? descr : _("(Untitled)"));
NumCheats++;
return 0;
}
assert(index >= 0 && index < NumCheats);
free(Cheats[index].Descr);
+ Cheats[index].Descr = NULL;
while (index < NumCheats - 1) {
Cheats[index] = Cheats[index + 1];