From d1bf155304d5643218cf70e58d8fb5191536fb9e Mon Sep 17 00:00:00 2001 From: neonloop Date: Tue, 7 Sep 2021 15:31:11 +0000 Subject: Enables softpatching for cores loading content from disk If a core sets need_fullpath, content is patched and written to a file in /tmp. This allows patching content for gpsp and probably others. --- cheat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cheat.c') diff --git a/cheat.c b/cheat.c index 4304593..cb644ee 100644 --- a/cheat.c +++ b/cheat.c @@ -12,7 +12,7 @@ static size_t parse_count(FILE *file) { size_t count = 0; - fscanf(file, " cheats = %ld\n", &count); + fscanf(file, " cheats = %lu\n", (unsigned long *)&count); return count; } -- cgit v1.2.3