diff --git a/developer/dx.sh b/developer/dx.sh index a5f6db7f..0dfc7c13 100644 --- a/developer/dx.sh +++ b/developer/dx.sh @@ -1 +1 @@ -make RENDER_API=D3D12 WINDOW_API=DXGI BETTERCAMERA=1 NODRAWINGDISTANCE=1 DEBUG=1 IMMEDIATELOAD=1 DEVELOPMENT=1 && ./build/us_pc/sm64.us.f3dex2e.exe +make RENDER_API=D3D11 WINDOW_API=DXGI BETTERCAMERA=1 NODRAWINGDISTANCE=1 DEBUG=1 IMMEDIATELOAD=1 DEVELOPMENT=1 && ./build/us_pc/sm64.us.f3dex2e.exe diff --git a/src/pc/crash_handler.c b/src/pc/crash_handler.c index ddf4b47b..4c6e657e 100644 --- a/src/pc/crash_handler.c +++ b/src/pc/crash_handler.c @@ -1,8 +1,11 @@ // Adapted from PeachyPeach's sm64pc-omm -#if defined(_WIN32) +#if defined(_WIN32) && !defined(WAPI_DUMMY) + #ifdef HAVE_SDL2 #include +#endif + #include #include #include @@ -462,6 +465,7 @@ static CRASH_HANDLER_TYPE crash_handler(EXCEPTION_POINTERS *ExceptionInfo) { } // sounds +#ifdef HAVE_SDL2 if (SDL_WasInit(SDL_INIT_AUDIO) || SDL_InitSubSystem(SDL_INIT_AUDIO) == 0) { SDL_AudioSpec want, have; want.freq = 32000; @@ -475,6 +479,7 @@ static CRASH_HANDLER_TYPE crash_handler(EXCEPTION_POINTERS *ExceptionInfo) { SDL_PauseAudioDevice(device, 0); } } +#endif // Main loop while (true) { @@ -492,4 +497,3 @@ __attribute__((constructor)) static void init_crash_handler() { } #endif -#endif