X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg.h;h=2c86d4d3b596749469f7550c84947acca1118f6e;hb=5cd0365349b88c7774e0e18c0cad591156512c1f;hp=53670b24ad93f6034b9f87111f3585a60b11de75;hpb=5276db4a15a6565813bdde22198f8aee4030e56f;p=fishladder.git diff --git a/vg/vg.h b/vg/vg.h index 53670b2..2c86d4d 100644 --- a/vg/vg.h +++ b/vg/vg.h @@ -55,7 +55,7 @@ float vg_time_delta; #include "vg/vg_console.h" #include "vg/vg_debug.h" -#include "steam/steamworks_thin.h" +#include "vg/vg_steamworks.h" // Engine main // =========================================================================================================== @@ -139,14 +139,8 @@ static void vg_init( int argc, char *argv[], const char *window_name ) { #ifdef VG_STEAM // Initialize steamworks - if( !sw_init( VG_STEAM_APPID ) ) - { - vg_exiterr( "Steamworks failed to initialize" ); - } - else - { - vg_register_exit( &sw_SteamAPI_Shutdown, "SteamAPI" ); - } + if( !sw_init() ) + return; #endif // Context creation @@ -239,7 +233,7 @@ static void vg_init( int argc, char *argv[], const char *window_name ) glfwPollEvents(); #ifdef VG_STEAM - sw_RunSteamEventLoop(); + sw_event_loop(); #endif vg_time_last = vg_time;