minor fixes

parent f219eb75
...@@ -746,9 +746,9 @@ uae_u8 *save_log (int bootlog, int *len) ...@@ -746,9 +746,9 @@ uae_u8 *save_log (int bootlog, int *len)
if (!logging_started) if (!logging_started)
return NULL; return NULL;
f = _tfopen (bootlog ? LOG_BOOT : LOG_NORMAL, "rb"); f = fopen (bootlog ? LOG_BOOT : LOG_NORMAL, "rb");
if (!f) if (!f)
return NULL; return NULL;
fseek (f, 0, SEEK_END); fseek (f, 0, SEEK_END);
size = ftell (f); size = ftell (f);
fseek (f, 0, SEEK_SET); fseek (f, 0, SEEK_SET);
......
...@@ -808,7 +808,7 @@ int save_state (const TCHAR *filename, const TCHAR *description) ...@@ -808,7 +808,7 @@ int save_state (const TCHAR *filename, const TCHAR *description)
} }
} }
#endif #endif
#ifdef CD32
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
dst = save_cd (i, &len); dst = save_cd (i, &len);
if (dst) { if (dst) {
...@@ -816,6 +816,7 @@ int save_state (const TCHAR *filename, const TCHAR *description) ...@@ -816,6 +816,7 @@ int save_state (const TCHAR *filename, const TCHAR *description)
save_chunk (f, dst, len, name, 0); save_chunk (f, dst, len, name, 0);
} }
} }
#endif
/* add fake END tag, makes it easy to strip CONF and LOG hunks */ /* add fake END tag, makes it easy to strip CONF and LOG hunks */
/* move this if you want to use CONF or LOG hunks when restoring state */ /* move this if you want to use CONF or LOG hunks when restoring state */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment