Skip to content

Commit

Permalink
[BOX32] Added (mostly untested) wrapped libGL and minimum SDL1 (SDLge…
Browse files Browse the repository at this point in the history
…ars and zsnes works)
  • Loading branch information
ptitSeb committed Sep 14, 2024
1 parent b361a0d commit de7baa0
Show file tree
Hide file tree
Showing 22 changed files with 8,544 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ if(BOX32)
"${BOX64_ROOT}/src/libtools/signal32.c"
"${BOX64_ROOT}/src/libtools/threads32.c"
"${BOX64_ROOT}/src/libtools/libc_net32.c"
"${BOX64_ROOT}/src/libtools/sdl1align32.c"
"${BOX64_ROOT}/src/emu/x86syscall_32.c"
"${BOX64_ROOT}/src/wrapped32/generated/wrapper32.c"
"${BOX64_ROOT}/src/wrapped32/generated/converter32.c"
Expand Down Expand Up @@ -782,6 +783,8 @@ if(BOX32)
"${BOX64_ROOT}/src/wrapped32/wrappedlibpthread.c"
"${BOX64_ROOT}/src/wrapped32/wrappedlibrt.c"
"${BOX64_ROOT}/src/wrapped32/wrappedcrashhandler.c"
"${BOX64_ROOT}/src/wrapped32/wrappedlibgl.c"
"${BOX64_ROOT}/src/wrapped32/wrappedsdl1.c"
)
endif()
string(REPLACE ".c" "_private.h" MODROOT ${BOX64_ROOT})
Expand Down
4 changes: 4 additions & 0 deletions src/include/gltools.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ void freeGLProcWrapper(box64context_t* context);

void* getGLProcAddress(x64emu_t* emu, glprocaddress_t procaddr, const char* rname);

#ifdef BOX32
void* getGLProcAddress32(x64emu_t* emu, glprocaddress_t procaddr, const char* rname);
#endif

#endif //__GL_TOOLS_H__
Loading

0 comments on commit de7baa0

Please sign in to comment.