Removed the padding from the cheat file when it is saved in CLT format.

This commit is contained in:
skidau 2015-05-22 07:05:06 +00:00
parent 2d5ecd88db
commit 4a5ae01e19
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}