-
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.
Make warp mode controllable by Amiga code.
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Index: demoscene-toolchain/submodules/fs-uae/src/uaelib.cpp | ||
=================================================================== | ||
--- demoscene-toolchain.orig/submodules/fs-uae/src/uaelib.cpp | ||
+++ demoscene-toolchain/submodules/fs-uae/src/uaelib.cpp | ||
@@ -27,6 +27,7 @@ | ||
#include "gensound.h" | ||
#include "picasso96.h" | ||
#include "filesys.h" | ||
+#include "inputdevice.h" | ||
|
||
/* | ||
* Returns UAE Version | ||
@@ -329,6 +330,11 @@ static uae_u32 emulib_Minimize (void) | ||
return 0; // OSDEP_minimize_uae(); | ||
} | ||
|
||
+static uae_u32 emulib_WarpMode(uae_u32 mode) { | ||
+ warpmode(mode ? 1 : 0); | ||
+ return 1; | ||
+} | ||
+ | ||
static int native_dos_op(TrapContext *ctx, uae_u32 mode, uae_u32 p1, uae_u32 p2, uae_u32 p3) | ||
{ | ||
TCHAR tmp[MAX_DPATH]; | ||
@@ -373,6 +379,7 @@ static uae_u32 uaelib_demux_common(TrapC | ||
case 15: return emulib_Debug(); | ||
|
||
case 40: return emulib_Log(ARG1); | ||
+ case 41: return emulib_WarpMode(ARG1); | ||
|
||
case 68: return emulib_Minimize(); | ||
case 69: return emulib_ExecuteNativeCode(); |
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