about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-08-10 22:39:58 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-08-10 22:39:58 +0200
commite3e1ee313b5b4348ae159d96e143f4e87d271fe1 (patch)
treeaa3cc40146c184647330beae79bd42b690438f40 /src
parentdc5c049ed94f3c3854c475b73e2c6b8df4a0c7a2 (diff)
downloadbox64-e3e1ee313b5b4348ae159d96e143f4e87d271fe1.tar.gz
box64-e3e1ee313b5b4348ae159d96e143f4e87d271fe1.zip
Some cleanup
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run6664.c1
-rw-r--r--src/wrapped/generated/functions_list.txt3
-rw-r--r--src/wrapped/generated/wrappedsdl2types.h2
-rw-r--r--src/wrapped/generated/wrapper.c2
-rw-r--r--src/wrapped/generated/wrapper.h1
5 files changed, 8 insertions, 1 deletions
diff --git a/src/emu/x64run6664.c b/src/emu/x64run6664.c
index f46d5b28..25fee5b1 100644
--- a/src/emu/x64run6664.c
+++ b/src/emu/x64run6664.c
@@ -70,7 +70,6 @@ uintptr_t Run6664(x64emu_t *emu, rex_t rex, uintptr_t addr)
                     }

                     CLEAR_FLAG(F_OF); CLEAR_FLAG(F_AF); CLEAR_FLAG(F_SF);

                     break;

-                    break;

 

                 default:

                     return 0;

diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 2c1c7b81..8dbc8cf4 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -698,6 +698,7 @@
 #() iFEiiN
 #() iFEipp
 #() iFEipV
+#() iFEupu
 #() iFEupp
 #() iFEpii
 #() iFEpip
@@ -3818,6 +3819,8 @@ wrappedsdl2:
   - SDL_LogInfo
   - SDL_LogVerbose
   - SDL_LogWarn
+- iFupu:
+  - SDL_DYNAPI_entry
 - iFupp:
   - SDL_TLSSet
 - iFppi:
diff --git a/src/wrapped/generated/wrappedsdl2types.h b/src/wrapped/generated/wrappedsdl2types.h
index fb5a28b4..7586a2fb 100644
--- a/src/wrapped/generated/wrappedsdl2types.h
+++ b/src/wrapped/generated/wrappedsdl2types.h
@@ -32,6 +32,7 @@ typedef uint64_t (*uFpU_t)(void*, uint64_t);
 typedef void* (*pFpi_t)(void*, int64_t);
 typedef void* (*pFpp_t)(void*, void*);
 typedef void (*vFipV_t)(int64_t, void*, ...);
+typedef int64_t (*iFupu_t)(uint64_t, void*, uint64_t);
 typedef int64_t (*iFupp_t)(uint64_t, void*, void*);
 typedef int64_t (*iFppi_t)(void*, void*, int64_t);
 typedef int64_t (*iFppV_t)(void*, void*, ...);
@@ -113,6 +114,7 @@ typedef void* (*pFpippp_t)(void*, int64_t, void*, void*, void*);
 	GO(SDL_LogInfo, vFipV_t) \
 	GO(SDL_LogVerbose, vFipV_t) \
 	GO(SDL_LogWarn, vFipV_t) \
+	GO(SDL_DYNAPI_entry, iFupu_t) \
 	GO(SDL_TLSSet, iFupp_t) \
 	GO(SDL_SaveBMP_RW, iFppi_t) \
 	GO(SDL_sscanf, iFppV_t) \
diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c
index da0b70cf..d539d772 100644
--- a/src/wrapped/generated/wrapper.c
+++ b/src/wrapped/generated/wrapper.c
@@ -732,6 +732,7 @@ typedef int64_t (*iFEiip_t)(x64emu_t*, int64_t, int64_t, void*);
 typedef int64_t (*iFEiiN_t)(x64emu_t*, int64_t, int64_t, ...);
 typedef int64_t (*iFEipp_t)(x64emu_t*, int64_t, void*, void*);
 typedef int64_t (*iFEipV_t)(x64emu_t*, int64_t, void*, void*);
+typedef int64_t (*iFEupu_t)(x64emu_t*, uint64_t, void*, uint64_t);
 typedef int64_t (*iFEupp_t)(x64emu_t*, uint64_t, void*, void*);
 typedef int64_t (*iFEpii_t)(x64emu_t*, void*, int64_t, int64_t);
 typedef int64_t (*iFEpip_t)(x64emu_t*, void*, int64_t, void*);
@@ -2895,6 +2896,7 @@ void iFEiip(x64emu_t *emu, uintptr_t fcn) { iFEiip_t fn = (iFEiip_t)fcn; R_RAX=(
 void iFEiiN(x64emu_t *emu, uintptr_t fcn) { iFEiiN_t fn = (iFEiiN_t)fcn; R_RAX=(int64_t)fn(emu, (int64_t)R_RDI, (int64_t)R_RSI, (void*)R_RDX); }
 void iFEipp(x64emu_t *emu, uintptr_t fcn) { iFEipp_t fn = (iFEipp_t)fcn; R_RAX=(int64_t)fn(emu, (int64_t)R_RDI, (void*)R_RSI, (void*)R_RDX); }
 void iFEipV(x64emu_t *emu, uintptr_t fcn) { iFEipV_t fn = (iFEipV_t)fcn; R_RAX=(int64_t)fn(emu, (int64_t)R_RDI, (void*)R_RSI, (void*)(R_RSP + 8)); }
+void iFEupu(x64emu_t *emu, uintptr_t fcn) { iFEupu_t fn = (iFEupu_t)fcn; R_RAX=(int64_t)fn(emu, (uint64_t)R_RDI, (void*)R_RSI, (uint64_t)R_RDX); }
 void iFEupp(x64emu_t *emu, uintptr_t fcn) { iFEupp_t fn = (iFEupp_t)fcn; R_RAX=(int64_t)fn(emu, (uint64_t)R_RDI, (void*)R_RSI, (void*)R_RDX); }
 void iFEpii(x64emu_t *emu, uintptr_t fcn) { iFEpii_t fn = (iFEpii_t)fcn; R_RAX=(int64_t)fn(emu, (void*)R_RDI, (int64_t)R_RSI, (int64_t)R_RDX); }
 void iFEpip(x64emu_t *emu, uintptr_t fcn) { iFEpip_t fn = (iFEpip_t)fcn; R_RAX=(int64_t)fn(emu, (void*)R_RDI, (int64_t)R_RSI, (void*)R_RDX); }
diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h
index 8dc0ebde..9de50b6a 100644
--- a/src/wrapped/generated/wrapper.h
+++ b/src/wrapped/generated/wrapper.h
@@ -731,6 +731,7 @@ void iFEiip(x64emu_t *emu, uintptr_t fnc);
 void iFEiiN(x64emu_t *emu, uintptr_t fnc);
 void iFEipp(x64emu_t *emu, uintptr_t fnc);
 void iFEipV(x64emu_t *emu, uintptr_t fnc);
+void iFEupu(x64emu_t *emu, uintptr_t fnc);
 void iFEupp(x64emu_t *emu, uintptr_t fnc);
 void iFEpii(x64emu_t *emu, uintptr_t fnc);
 void iFEpip(x64emu_t *emu, uintptr_t fnc);