- Timestamp:
- Jul 17, 2009, 10:34:48 AM (15 years ago)
- Location:
- Daodan
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/build.bat
r437 r439 1 gcc -O3 -s -Wall -shared -fomit-frame-pointer -o build\binkw32.dll src\Oni_Symbols.S src\Daodan.c src\Daodan_DLLStubs.c src\Daodan_Patch.c src\Daodan_Utility.c src\Daodan_Win32.c src\Daodan_Cheater.c src\Daodan_Persistence.c src\Daodan_WindowHack.c src\daodan_gl.c src\Daodan_Character.c src\Daodan_Console.c src\ inifile_reader.c -lgdi321 gcc -O3 -s -Wall -shared -fomit-frame-pointer -o build\binkw32.dll src\Oni_Symbols.S src\Daodan.c src\Daodan_DLLStubs.c src\Daodan_Patch.c src\Daodan_Utility.c src\Daodan_Win32.c src\Daodan_Cheater.c src\Daodan_Persistence.c src\Daodan_WindowHack.c src\daodan_gl.c src\Daodan_Character.c src\Daodan_Console.c src\Daodan_BSL.c src\inifile_reader.c -lgdi32 -
Daodan/src/Daodan.c
r426 r439 7 7 #include "Daodan_Cheater.h" 8 8 #include "Daodan_Persistence.h" 9 #include "Daodan_BSL.h" 9 10 10 11 #include "Daodan_WindowHack.h" … … 45 46 bool patch_usedaodangl = false; 46 47 bool patch_windowhack = true; 48 bool patch_daodaninit = true; 49 50 bool opt_usedaodanbsl = true; 47 51 48 52 bool DDrPatch_Init() … … 165 169 } 166 170 167 enum {s_unknown, s_ patch, s_language} ini_section;171 enum {s_unknown, s_options, s_patch, s_language} ini_section; 168 172 169 173 bool DDrIniCallback(char* section, bool newsection, char* name, char* value) … … 171 175 if (newsection) 172 176 { 173 if (!stricmp(section, "patch")) 177 if (!stricmp(section, "options")) 178 ini_section = s_options; 179 else if (!stricmp(section, "patch")) 174 180 ini_section = s_patch; 175 181 else if (!stricmp(section, "language")) … … 184 190 switch (ini_section) 185 191 { 192 case s_options: 193 if (!stricmp(name, "usedaodanbsl")) 194 opt_usedaodanbsl = !stricmp(value, "true"); 195 break; 186 196 case s_patch: 187 197 if (!stricmp(name, "fonttexturecache")) … … 227 237 else if (!stricmp(name, "windowhack")) 228 238 patch_windowhack = !stricmp(value, "true"); 239 else if (!stricmp(name, "daodaninit")) 240 patch_daodaninit = !stricmp(value, "true"); 229 241 else 230 242 DDrStartupMessage("unrecognised patch \"%s\"", name); … … 364 376 } 365 377 378 void ONICALL DDrGame_Init() 379 { 380 if (opt_usedaodanbsl) 381 SLrDaodan_Initalize(); 382 } 383 366 384 void __cdecl DDrMain(int argc, char* argv[]) 367 385 { … … 400 418 if (patch_windowhack) 401 419 DDrWindowHack_Install(); 420 421 if (patch_daodaninit) 422 DDrPatch_MakeCall(OniExe + 0x000d345a, DDrGame_Init); 402 423 403 424 init_daodan_gl(); -
Daodan/src/Oni_Symbols.S
r437 r439 2 2 3 3 // MSVC6.0 stdlib 4 symbol ( _oni_malloc , 0x0011fc24 )5 symbol ( _oni_free , 0x0011fbf5 )4 symbol ( _oni_malloc , 0x0011fc24 ) 5 symbol ( _oni_free , 0x0011fbf5 ) 6 6 7 symbol ( _oni_fopen , 0x0011ea9f )8 symbol ( _oni_fflush , 0x0011eab2 )9 symbol ( _oni_fprintf , 0x0011ebbf )10 symbol ( _oni_vsprintf , 0x0011e860 )7 symbol ( _oni_fopen , 0x0011ea9f ) 8 symbol ( _oni_fflush , 0x0011eab2 ) 9 symbol ( _oni_fprintf , 0x0011ebbf ) 10 symbol ( _oni_vsprintf , 0x0011e860 ) 11 11 12 12 // Oni Engine 13 symbol ( _ONiMain , 0x000d3280 )14 symbol ( @ONrPlatform_Initialize@4 , 0x0010f670 )15 symbol ( _ONrPlatform_WindowProc@16 , 0x0010f7a0 )13 symbol ( _ONiMain , 0x000d3280 ) 14 symbol ( @ONrPlatform_Initialize@4 , 0x0010f670 ) 15 symbol ( _ONrPlatform_WindowProc@16 , 0x0010f7a0 ) 16 16 17 symbol ( _g_Instance , 0x0021f9e4 )18 symbol ( _ONgPlatformData , 0x0023100c )19 symbol ( _ONgGameState , 0x001ece7c )17 symbol ( _g_Instance , 0x0021f9e4 ) 18 symbol ( _ONgPlatformData , 0x0023100c ) 19 symbol ( _ONgGameState , 0x001ece7c ) 20 20 21 21 //Oni Persistance 22 symbol ( @ONrPersist_GetGamma@0 , 0x0010f450 )23 symbol ( @ONrPersist_GetWonGame@0 , 0x0010f660 )22 symbol ( @ONrPersist_GetGamma@0 , 0x0010f450 ) 23 symbol ( @ONrPersist_GetWonGame@0 , 0x0010f660 ) 24 24 25 25 // BFW_Utility 26 symbol ( _UUrStartupMessage , 0x00024860 )27 symbol ( @UUrMachineTime_High@0 , 0x00026480 )28 symbol ( @UUrMachineTime_High_Frequency@0 , 0x000264b0 )29 symbol ( @UUrMachineTime_Sixtieths@0 , 0x000263e0 )30 symbol ( _ONgFileStartup , 0x001711b8 )26 symbol ( _UUrStartupMessage , 0x00024860 ) 27 symbol ( @UUrMachineTime_High@0 , 0x00026480 ) 28 symbol ( @UUrMachineTime_High_Frequency@0 , 0x000264b0 ) 29 symbol ( @UUrMachineTime_Sixtieths@0 , 0x000263e0 ) 30 symbol ( _ONgFileStartup , 0x001711b8 ) 31 31 32 symbol ( @UUrPlatform_Initialize@0 , 0x00026010 )33 symbol ( @UUrPlatform_Terminate@0 , 0x00026310 )32 symbol ( @UUrPlatform_Initialize@0 , 0x00026010 ) 33 symbol ( @UUrPlatform_Terminate@0 , 0x00026310 ) 34 34 35 symbol ( _AUrMessageBox , 0x000378c0 )35 symbol ( _AUrMessageBox , 0x000378c0 ) 36 36 37 37 // Motoko 38 38 39 symbol ( _M3gResolutionSwitch , 0x00131634 )39 symbol ( _M3gResolutionSwitch , 0x00131634 ) 40 40 41 41 // OpenGL 42 symbol ( @gl_enumerate_valid_display_modes@4 , 0x000083a0 )43 symbol ( @gl_platform_set_pixel_format@4 , 0x00007b50 )44 symbol ( @gl_platform_initialize@0 , 0x00007da0 )42 symbol ( @gl_enumerate_valid_display_modes@4 , 0x000083a0 ) 43 symbol ( @gl_platform_set_pixel_format@4 , 0x00007b50 ) 44 symbol ( @gl_platform_initialize@0 , 0x00007da0 ) 45 45 46 symbol ( _gl , 0x00160600 )47 symbol ( _gl_api , 0x00160604 )48 symbol ( _gl_gamma_ramp , 0x0015fdfc )49 symbol ( _gl_gamma_ramp_valid , 0x001603fc )46 symbol ( _gl , 0x00160600 ) 47 symbol ( _gl_api , 0x00160604 ) 48 symbol ( _gl_gamma_ramp , 0x0015fdfc ) 49 symbol ( _gl_gamma_ramp_valid , 0x001603fc ) 50 50 51 51 // Character 52 symbol ( @ONrGameState_NewCharacter@16 , 0x000dac50 )53 symbol ( @ONrGameState_GetPlayerCharacter@0 , 0x000b63a7 )52 symbol ( @ONrGameState_NewCharacter@16 , 0x000dac50 ) 53 symbol ( @ONrGameState_GetPlayerCharacter@0 , 0x000b63a7 ) 54 54 55 55 // Console 56 symbol ( @COrTextArea_Print@28 , 0x00031340 ) 57 symbol ( _COgConsoleLines , 0x001cb468 ) 58 symbol ( _COgFadeTimeValue , 0x00133f68 ) 59 symbol ( _COgDefaultTextShade , 0x00133f70 ) 60 symbol ( _COgDefaultTextShadow , 0x00133f74 ) 56 symbol ( @COrTextArea_Print@28 , 0x00031340 ) 57 symbol ( _COgConsoleLines , 0x001cb468 ) 58 symbol ( _COgFadeTimeValue , 0x00133f68 ) 59 symbol ( _COgDefaultTextShade , 0x00133f70 ) 60 symbol ( _COgDefaultTextShadow , 0x00133f74 ) 61 62 // ScriptingLanguage 63 symbol ( @SLrScript_Command_Register_ReturnType@20 , 0x00077b20 )
Note:
See TracChangeset
for help on using the changeset viewer.