Removed the padding from the cheat file when it is saved in CLT format.
This commit is contained in:
parent
2d5ecd88db
commit
4a5ae01e19
|
@ -113,7 +113,7 @@ void gbCheatsSaveCheatList(const char *file)
|
|||
int type = 1;
|
||||
fwrite(&type, 1, sizeof(type), f);
|
||||
fwrite(&gbCheatNumber, 1, sizeof(gbCheatNumber), f);
|
||||
fwrite(gbCheatList, 1, sizeof(gbCheatList), f);
|
||||
fwrite(gbCheatList, 1, sizeof(gbCheat) * gbCheatNumber, f);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
|
|
@ -2699,7 +2699,7 @@ void cheatsSaveCheatList(const char *file)
|
|||
int type = 1;
|
||||
fwrite(&type, 1, sizeof(type), f);
|
||||
fwrite(&cheatsNumber, 1, sizeof(cheatsNumber), f);
|
||||
fwrite(cheatsList, 1, sizeof(cheatsList), f);
|
||||
fwrite(cheatsList, 1, sizeof(CheatsData) * cheatsNumber, f);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue