commit e9ae65328a2b9115f340bf5dfc77e1fa44924292 parent f7b3e4f328a131f3cb406eae237db4de3054ab28 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Oct 17 20:17:49 +0300 Load DLLs on Windows Diffstat:
main.cc | | | 4 | ++++ |
diff --git a/main.cc b/main.cc @@ -82,7 +82,11 @@ int main( int argc, char ** argv ) { install_debug_signal_handlers( true ); #endif +#if PLATFORM_LINUX const char * game_library_path = argc == 2 ? argv[ 1 ] : "./hm.so"; +#elif PLATFORM_WINDOWS + const char * game_library_path = argc == 2 ? argv[ 1 ] : "./hm.dll"; +#endif size_t persistent_size = megabytes( 64 ); u8 * persistent_memory = ( u8 * ) malloc( persistent_size );