diff --git a/src/pc/gfx/gfx_dxgi.cpp b/src/pc/gfx/gfx_dxgi.cpp index 80fc20b5..18db4bba 100644 --- a/src/pc/gfx/gfx_dxgi.cpp +++ b/src/pc/gfx/gfx_dxgi.cpp @@ -20,6 +20,9 @@ #endif #include +#define DECLARE_GFX_DXGI_FUNCTIONS +#include "gfx_dxgi.h" + #include "../configfile.h" #include "../pc_main.h" @@ -38,9 +41,6 @@ extern "C" { #define WINCLASS_NAME L"N64GAME" -#define DECLARE_GFX_DXGI_FUNCTIONS -#include "gfx_dxgi.h" - #ifdef VERSION_EU #define FRAME_INTERVAL_US_NUMERATOR 40000 #define FRAME_INTERVAL_US_DENOMINATOR 2 diff --git a/src/pc/pc_main.c b/src/pc/pc_main.c index 17c085dd..e1a79ea6 100644 --- a/src/pc/pc_main.c +++ b/src/pc/pc_main.c @@ -343,11 +343,15 @@ int main(int argc, char *argv[]) { } // Start the thread for setting up the game +#ifndef WAPI_DXGI if (pthread_mutex_init(&gLoadingThreadMutex, NULL) == 0 && pthread_create(&gLoadingThreadId, NULL, main_game_init, (void*) 1) == 0) { gIsThreaded = true; render_loading_screen(); // Render the loading screen while the game is setup gIsThreaded = false; } else { +#else + { +#endif main_game_init(NULL); // Failsafe incase threading doesn't work } pthread_mutex_destroy(&gLoadingThreadMutex);