- Timestamp:
- Apr 2, 2014, 2:48:54 AM (11 years ago)
- Location:
- Daodan
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/makefile
r983 r990 4 4 5 5 DEF = BEA_ENGINE_STATIC 6 INCLUDEPATHS = .7 GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-pragmas -Wno-unused-variable $(addprefix -I $(SRC)/,$(INCLUDEPATHS)) -Wno-unused-parameter $(addprefix -D,$(DEF))6 INCLUDEPATHS = src 7 GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-pragmas -Wno-unused-variable $(addprefix -I,$(INCLUDEPATHS)) -Wno-unused-parameter $(addprefix -D,$(DEF)) 8 8 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll 9 9 LOCALE = LC_MESSAGES=C 10 10 11 #LIBS = -lwinmm -lopengl32 11 LIBDIRS = 12 12 LIBS = -lgdi32 -lwsock32 13 13 OBJS = $(SRC)/binkw32.def … … 36 36 ALL: $(DESTFOLDERS) $(DEST) $(OBJS) 37 37 @echo "Linking" 38 $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIB S)38 $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBDIRS) $(LIBS) 39 39 40 40 clean: -
Daodan/src/Daodan.c
r983 r990 12 12 #include "Daodan_Config.h" 13 13 #include "patches/Patches.h" 14 #include "bink-proxy.h" 14 15 #include "_Version.h" 15 16 … … 35 36 DDrConfig(argc, argv); 36 37 38 if(GetKeyState(VK_SHIFT) & 0x8000) { 39 DDrStartupMessage("Daodan: Shift"); 40 guitest(DDrONiModule); 41 } 42 37 43 DD_Patch_Init(); 44 45 BinkProxyInit(); 38 46 39 47 ONiMain(argc, argv); -
Daodan/src/Daodan_Config.c
r984 r990 62 62 if (!_stricmp(section, "options")) 63 63 ini_section = s_options; 64 else if (!_stricmp(section, "patch") )64 else if (!_stricmp(section, "patch") || !_stricmp(section, "patches")) 65 65 ini_section = s_patch; 66 66 else if (!_stricmp(section, "bsl")) -
Daodan/src/Daodan_Patch.c
r983 r990 168 168 DDrPatch_MakeJump(&trampoline[pos], (void*)disasm.EIP); 169 169 DDrPatch_NOOP(from, (void*)disasm.EIP - from); 170 171 DWORD oldp; 172 if (!VirtualProtect(trampoline, 40, PAGE_EXECUTE_READWRITE, &oldp)) { 173 DDrStartupMessage("Daodan: Detour: Could not mark page for trampoline as executable: from address 0x%08x", from); 174 return (void*)-1; 175 } 170 176 DDrPatch_MakeJump(from, to); 171 177 /* … … 213 219 DDrStartupMessage(""); 214 220 DDrStartupMessage(""); 215 */ 221 */ 222 216 223 return trampoline; 217 224 } -
Daodan/src/Oni_Symbols.h
r987 r990 114 114 // Oni's main method? 115 115 DefFunc(void, ONiMain, __cdecl, (int ArgCount, char *ArgList[]), 0x004d3280); 116 117 DefFunc(uint16_t, CLrGetCommandLine, ONICALL, (int inArgc, const char* inArgv[], char*** outArgV), 0x0043ffd0); 116 118 117 119 // Initialization code, used to hook in windowed modes -
Daodan/src/_Version.h
r983 r990 6 6 7 7 #define DAODAN_VERSION_MAJOR 3 8 #define DAODAN_VERSION_MINOR 68 #define DAODAN_VERSION_MINOR 7 9 9 #define DAODAN_VERSION_STRING STRINGIZE(DAODAN_VERSION_MAJOR) "." STRINGIZE(DAODAN_VERSION_MINOR) 10 10 -
Daodan/src/binkw32.def
r687 r990 2 2 3 3 EXPORTS 4 _BinkBufferBlit@12 @1 5 _BinkBufferClose@4 @4 6 _BinkBufferLock@4 @7 7 _BinkBufferOpen@16 @8 8 _BinkBufferSetOffset@12 @11 9 _BinkBufferUnlock@4 @14 10 _BinkClose@4 @16 11 _BinkCopyToBuffer@28 @18 12 _BinkDoFrame@4 @20 13 _BinkGetRects@8 @24 14 _BinkNextFrame@4 @33 15 _BinkOpen@8 @34 16 _BinkOpenDirectSound@4 @35 17 _BinkService@4 @41 18 _BinkSetIOSize@4 @45 19 _BinkSetSoundOnOff@8 @48 20 _BinkSetSoundSystem@8 @49 21 _BinkSetVolume@8 @52 22 _BinkWait@4 @53 4 23 5 _BinkBufferBlit@12 = REALBINK._BinkBufferBlit@12 @16 _BinkBufferCheckWinPos@12 = REALBINK._BinkBufferCheckWinPos@12 @27 _BinkBufferClear@8 = REALBINK._BinkBufferClear@8 @38 _BinkBufferClose@4 = REALBINK._BinkBufferClose@4 @49 _BinkBufferGetDescription@4 = REALBINK._BinkBufferGetDescription@4 @510 _BinkBufferGetError@0 = REALBINK._BinkBufferGetError@0 @611 _BinkBufferLock@4 = REALBINK._BinkBufferLock@4 @712 _BinkBufferOpen@16 = REALBINK._BinkBufferOpen@16 @813 _BinkBufferSetDirectDraw@8 = REALBINK._BinkBufferSetDirectDraw@8 @914 _BinkBufferSetHWND@8 = REALBINK._BinkBufferSetHWND@8 @1015 _BinkBufferSetOffset@12 = REALBINK._BinkBufferSetOffset@12 @1116 _BinkBufferSetResolution@12 = REALBINK._BinkBufferSetResolution@12 @1217 _BinkBufferSetScale@12 = REALBINK._BinkBufferSetScale@12 @1318 _BinkBufferUnlock@4 = REALBINK._BinkBufferUnlock@4 @1419 _BinkCheckCursor@20 = REALBINK._BinkCheckCursor@20 @1520 _BinkClose@4 = REALBINK._BinkClose@4 @1621 _BinkCloseTrack@4 = REALBINK._BinkCloseTrack@4 @1722 _BinkCopyToBuffer@28 = REALBINK._BinkCopyToBuffer@28 @1823 _BinkDDSurfaceType@4 = REALBINK._BinkDDSurfaceType@4 @1924 _BinkDoFrame@4 = REALBINK._BinkDoFrame@4 @2025 _BinkGetError@0 = REALBINK._BinkGetError@0 @2126 _BinkGetKeyFrame@12 = REALBINK._BinkGetKeyFrame@12 @2227 _BinkGetRealtime@12 = REALBINK._BinkGetRealtime@12 @2328 _BinkGetRects@8 = REALBINK._BinkGetRects@8 @2429 _BinkGetSummary@8 = REALBINK._BinkGetSummary@8 @2530 _BinkGetTrackData@8 = REALBINK._BinkGetTrackData@8 @2631 _BinkGetTrackID@8 = REALBINK._BinkGetTrackID@8 @2732 _BinkGetTrackMaxSize@8 = REALBINK._BinkGetTrackMaxSize@8 @2833 _BinkGetTrackType@8 = REALBINK._BinkGetTrackType@8 @2934 _BinkGoto@12 = REALBINK._BinkGoto@12 @3035 _BinkIsSoftwareCursor@8 = REALBINK._BinkIsSoftwareCursor@8 @3136 _BinkLogoAddress@0 = REALBINK._BinkLogoAddress@0 @3237 _BinkNextFrame@4 = REALBINK._BinkNextFrame@4 @3338 _BinkOpen@8 = REALBINK._BinkOpen@8 @3439 _BinkOpenDirectSound@4 = REALBINK._BinkOpenDirectSound@4 @3540 _BinkOpenMiles@4 = REALBINK._BinkOpenMiles@4 @3641 _BinkOpenTrack@8 = REALBINK._BinkOpenTrack@8 @3742 _BinkOpenWaveOut@4 = REALBINK._BinkOpenWaveOut@4 @3843 _BinkPause@8 = REALBINK._BinkPause@8 @3944 _BinkRestoreCursor@4 = REALBINK._BinkRestoreCursor@4 @4045 _BinkService@4 = REALBINK._BinkService@4 @4146 _BinkSetError@4 = REALBINK._BinkSetError@4 @4247 _BinkSetFrameRate@8 = REALBINK._BinkSetFrameRate@8 @4348 _BinkSetIO@4 = REALBINK._BinkSetIO@4 @4449 _BinkSetIOSize@4 = REALBINK._BinkSetIOSize@4 @4550 _BinkSetPan@8 = REALBINK._BinkSetPan@8 @4651 _BinkSetSimulate@4 = REALBINK._BinkSetSimulate@4 @4752 _BinkSetSoundOnOff@8 = REALBINK._BinkSetSoundOnOff@8 @4853 _BinkSetSoundSystem@8 = REALBINK._BinkSetSoundSystem@8 @4954 _BinkSetSoundTrack@4 = REALBINK._BinkSetSoundTrack@4 @5055 _BinkSetVideoOnOff@8 = REALBINK._BinkSetVideoOnOff@8 @5156 _BinkSetVolume@8 = REALBINK._BinkSetVolume@8 @5257 _BinkWait@4 = REALBINK._BinkWait@4 @5358 _ExpandBink@56 = REALBINK._ExpandBink@56 @5459 _ExpandBundleSizes@8 = REALBINK._ExpandBundleSizes@8 @5560 _RADSetMemory@8 = REALBINK._RADSetMemory@8 @5661 _RADTimerRead@0 = REALBINK._RADTimerRead@0 @5762 _YUV_blit_16a1bpp@52 = REALBINK._YUV_blit_16a1bpp@52 @5863 _YUV_blit_16a1bpp_mask@52 = REALBINK._YUV_blit_16a1bpp_mask@52 @5964 _YUV_blit_16a4bpp@52 = REALBINK._YUV_blit_16a4bpp@52 @6065 _YUV_blit_16a4bpp_mask@52 = REALBINK._YUV_blit_16a4bpp_mask@52 @6166 _YUV_blit_16bpp@48 = REALBINK._YUV_blit_16bpp@48 @6267 _YUV_blit_16bpp_mask@48 = REALBINK._YUV_blit_16bpp_mask@48 @6368 _YUV_blit_24bpp@48 = REALBINK._YUV_blit_24bpp@48 @6469 _YUV_blit_24bpp_mask@48 = REALBINK._YUV_blit_24bpp_mask@48 @6570 _YUV_blit_24rbpp@48 = REALBINK._YUV_blit_24rbpp@48 @6671 _YUV_blit_24rbpp_mask@48 = REALBINK._YUV_blit_24rbpp_mask@48 @6772 _YUV_blit_32abpp@52 = REALBINK._YUV_blit_32abpp@52 @6873 _YUV_blit_32abpp_mask@52 = REALBINK._YUV_blit_32abpp_mask@52 @6974 _YUV_blit_32bpp@48 = REALBINK._YUV_blit_32bpp@48 @7075 _YUV_blit_32bpp_mask@48 = REALBINK._YUV_blit_32bpp_mask@48 @7176 _YUV_blit_32rabpp@52 = REALBINK._YUV_blit_32rabpp@52 @7277 _YUV_blit_32rabpp_mask@52 = REALBINK._YUV_blit_32rabpp_mask@52 @7378 _YUV_blit_32rbpp@48 = REALBINK._YUV_blit_32rbpp@48 @7479 _YUV_blit_32rbpp_mask@48 = REALBINK._YUV_blit_32rbpp_mask@48 @7580 _YUV_blit_UYVY@48 = REALBINK._YUV_blit_UYVY@48 @7681 _YUV_blit_UYVY_mask@48 = REALBINK._YUV_blit_UYVY_mask@48 @7782 _YUV_blit_YUY2@48 = REALBINK._YUV_blit_YUY2@48 @7883 _YUV_blit_YUY2_mask@48 = REALBINK._YUV_blit_YUY2_mask@48 @7984 _YUV_blit_YV12@52 = REALBINK._YUV_blit_YV12@52 @8085 _YUV_init@4 = REALBINK._YUV_init@4 @8186 _radfree@4 = REALBINK._radfree@4 @8287 _radmalloc@4 = REALBINK._radmalloc@4 @8388 89 -
Daodan/src/patches/Patches.c
r987 r990 350 350 void DD_Patch_DisableCmdLine() 351 351 { 352 DDrPatch_Int32 ((int*)(OniExe + 0x000d3570), 0xc3c03366); 352 // Replace start of OniParseCommandLine with XOR ax,ax; RET 353 // DDrPatch_Int32 ((int*)(OniExe + 0x000d3570), 0xc3c03366); 354 // Replace start of OniParseCommandLine with XOR eax,eax; RET 355 DDrPatch_Int32 ((int*)(OniExe + 0x000d3570), 0x00c3c033); 353 356 } 354 357
Note:
See TracChangeset
for help on using the changeset viewer.