-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to the most recent fs-uae based on winuae 4.2.1
- Loading branch information
Showing
16 changed files
with
300 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Index: demoscene-toolchain/submodules/fs-uae/fsemu/src/fsemu-data.c | ||
=================================================================== | ||
--- demoscene-toolchain.orig/submodules/fs-uae/fsemu/src/fsemu-data.c | ||
+++ demoscene-toolchain/submodules/fs-uae/fsemu/src/fsemu-data.c | ||
@@ -284,7 +284,7 @@ char *fsemu_data_file_path(const char *r | ||
return path; | ||
} | ||
|
||
-#ifdef FSEMU_OS_MACOS | ||
+#ifdef FSEMU_OS_MACOS__DISABLE | ||
char buffer[FSEMU_PATH_MAX]; | ||
fs_get_application_exe_dir(buffer, FSEMU_PATH_MAX); | ||
path = g_build_filename(buffer, "..", "Resources", "Data", relative, NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Index: demoscene-toolchain/submodules/fs-uae/src/debug.cpp | ||
=================================================================== | ||
--- demoscene-toolchain.orig/submodules/fs-uae/src/debug.cpp | ||
+++ demoscene-toolchain/submodules/fs-uae/src/debug.cpp | ||
@@ -6474,7 +6474,7 @@ void debug (void) | ||
return; | ||
} | ||
if (bp > 0) | ||
- console_out_f(_T("Breakpoint %d triggered.\n"), bp - 1); | ||
+ console_out_f(_T("Breakpoint at %x\n"), pc); | ||
debug_cycles(); | ||
} | ||
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
Index: demoscene-toolchain/submodules/fs-uae/src/od-fs/uaemisc.cpp | ||
Index: demoscene-toolchain/submodules/fs-uae/src/od-fs/writelog_fs.cpp | ||
=================================================================== | ||
--- demoscene-toolchain.orig/submodules/fs-uae/src/od-fs/uaemisc.cpp | ||
+++ demoscene-toolchain/submodules/fs-uae/src/od-fs/uaemisc.cpp | ||
@@ -85,7 +85,7 @@ void sleep_millis (int ms) { | ||
void console_out_f(const TCHAR *fmt, ...) { | ||
--- demoscene-toolchain.orig/submodules/fs-uae/src/od-fs/writelog_fs.cpp | ||
+++ demoscene-toolchain/submodules/fs-uae/src/od-fs/writelog_fs.cpp | ||
@@ -479,7 +479,7 @@ void console_out_f (const TCHAR *format, | ||
#else | ||
va_list arg_ptr; | ||
va_start(arg_ptr, fmt); | ||
- vprintf(fmt, arg_ptr); | ||
+ vfprintf(stderr, fmt, arg_ptr); | ||
va_start(arg_ptr, format); | ||
- vprintf(format, arg_ptr); | ||
+ vfprintf(stderr, format, arg_ptr); | ||
va_end(arg_ptr); | ||
} | ||
|
||
@@ -102,7 +102,7 @@ void f_out(void *f, const TCHAR *format, | ||
} | ||
|
||
void console_out (const TCHAR *msg) { | ||
- printf("%s", msg); | ||
+ fprintf(stderr, "%s", msg); | ||
} | ||
|
||
int console_get_gui (TCHAR *out, int maxlen) { | ||
@@ -120,7 +120,7 @@ int console_get(TCHAR *in, int maxlen) { | ||
#endif | ||
@@ -490,7 +490,7 @@ void console_out (const TCHAR *txt) | ||
#ifdef _WIN32 | ||
console_put (txt); | ||
#else | ||
- printf("%s", txt); | ||
+ fprintf(stderr, "%s", txt); | ||
#endif | ||
} | ||
|
||
void console_flush(void) { | ||
- fflush(stdout); | ||
+ fflush(stderr); | ||
@@ -596,7 +596,7 @@ void console_flush (void) | ||
#ifdef _WIN32 | ||
flushconsole (); | ||
#else | ||
- fflush(stdout); | ||
+ fflush(stderr); | ||
#endif | ||
} | ||
|
||
TCHAR console_getch (void) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,21 @@ | ||
Index: demoscene-toolchain/submodules/fs-uae/src/debug.cpp | ||
=================================================================== | ||
--- demoscene-toolchain.orig/submodules/fs-uae/src/debug.cpp | ||
+++ demoscene-toolchain/submodules/fs-uae/src/debug.cpp | ||
@@ -4836,7 +4836,7 @@ static bool debug_line (TCHAR *input) | ||
debug_illegal_mask = debug_illegal ? 0 : -1; | ||
debug_illegal_mask &= ~((uae_u64)255 << 24); // mask interrupts | ||
} | ||
- console_out_f (_T("Exception breakpoint mask: %0I64X\n"), debug_illegal_mask); | ||
+ console_out_f (_T("Exception breakpoint mask: %016" PRIx64 "\n"), debug_illegal_mask); | ||
debug_illegal = debug_illegal_mask ? 1 : 0; | ||
} else { | ||
addr = 0xffffffff; | ||
Index: demoscene-toolchain/submodules/fs-uae/src/newcpu.cpp | ||
=================================================================== | ||
--- demoscene-toolchain.orig/submodules/fs-uae/src/newcpu.cpp | ||
+++ demoscene-toolchain/submodules/fs-uae/src/newcpu.cpp | ||
@@ -2191,6 +2191,7 @@ static void exception_debug (int nr) | ||
@@ -2911,6 +2911,7 @@ static void exception_debug (int nr) | ||
return; | ||
console_out_f (_T("Exception %d, PC=%08X\n"), nr, M68K_GETPC); | ||
#endif | ||
+ console_out_f (_T("Exception %d, PC=%08X\n"), nr, M68K_GETPC); | ||
} | ||
|
||
#ifdef CPUEMU_13 | ||
@@ -2993,7 +2994,7 @@ static void ExceptionX (int nr, uaecptr | ||
@@ -3792,7 +3793,7 @@ static void ExceptionX (int nr, uaecptr | ||
|
||
if (debug_illegal && !in_rom (M68K_GETPC)) { | ||
if (debug_illegal && !in_rom(pc)) { | ||
if (nr <= 63 && (debug_illegal_mask & ((uae_u64)1 << nr))) { | ||
- write_log (_T("Exception %d breakpoint\n"), nr); | ||
+ console_out_f (_T("Exception %d breakpoint\n"), nr); | ||
activate_debugger (); | ||
- write_log(_T("Exception %d breakpoint\n"), nr); | ||
+ console_out_f(_T("Exception %d breakpoint\n"), nr); | ||
activate_debugger(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.