- Timestamp:
- Oct 17, 2009, 10:47:09 AM (15 years ago)
- Location:
- Daodan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan.c
r459 r465 455 455 ONiMain(argc, argv); 456 456 } 457 457 /* 458 void DDrWrongExe() 459 { 460 switch (MessageBox(NULL, "This version of the Daodan DLL is incompatible with your Oni.exe.\n" 461 "Click OK for more information. To continue using Oni without the patch, replace the downloaded binkw32.dll with the original.", "Daodan", MB_OKCANCEL | MB_ICONERROR)) 462 { 463 case IDOK: 464 { 465 STARTUPINFO si; 466 PROCESS_INFORMATION pi; 467 FillMemory(&si, 0, sizeof(si)); 468 FillMemory(&pi, 0, sizeof(pi)); 469 si.cb = sizeof(si); 470 if (!CreateProcess(NULL, "cmd /c \"start http://wiki.oni2.net/Daodan_DLL\"", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) 471 MessageBox(NULL, "", "", 0); 472 CloseHandle(pi.hProcess); 473 CloseHandle(pi.hThread); 474 } 475 default: 476 ExitProcess(0); 477 } 478 } 479 */ 458 480 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) 459 481 { … … 464 486 DDrONiModule = GetModuleHandle(NULL); 465 487 466 DDrPatch_MakeCall(OniExe + 0x0010fb49, DDrMain); 467 488 if (*(uint32_t*)((void*)OniExe + 0x0011acd0) == 0x09d36852) 489 DDrPatch_MakeCall(OniExe + 0x0010fb49, DDrMain); 490 else 491 ExitProcess(0); 468 492 break; 469 493 }
Note:
See TracChangeset
for help on using the changeset viewer.