update specific game hook
This commit is contained in:
parent
268f40771d
commit
3aee03a244
@ -16397,18 +16397,28 @@ bool InsertShinyDaysGameHook()
|
|||||||
0xc6,0x84,0x24,0x90,0x02,0x00,0x00,0x02
|
0xc6,0x84,0x24,0x90,0x02,0x00,0x00,0x02
|
||||||
};
|
};
|
||||||
LPVOID addr = (LPVOID)0x42ad94;
|
LPVOID addr = (LPVOID)0x42ad94;
|
||||||
if (::memcmp(addr, bytes, sizeof(bytes)) != 0) {
|
if (::memcmp(addr, bytes, sizeof(bytes)) == 0) {
|
||||||
ConsoleOutput("vnreng:ShinyDays: only work for 1.00");
|
HookParam hp = {};
|
||||||
return false;
|
hp.address = 0x42ad9c;
|
||||||
|
hp.text_fun = SpecialGameHookShinyDays;
|
||||||
|
hp.type = USING_UNICODE | USING_STRING | NO_CONTEXT;
|
||||||
|
ConsoleOutput("vnreng: INSERT ShinyDays");
|
||||||
|
NewHook(hp, "ShinyDays 1.00");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
addr = (LPVOID)0x42b7f4;
|
||||||
|
if (::memcmp(addr, bytes, sizeof(bytes)) == 0) {
|
||||||
|
HookParam hp = {};
|
||||||
|
hp.address = 0x42b7fc;
|
||||||
|
hp.text_fun = SpecialGameHookShinyDays;
|
||||||
|
hp.type = USING_UNICODE | USING_STRING | NO_CONTEXT;
|
||||||
|
ConsoleOutput("vnreng: INSERT ShinyDays");
|
||||||
|
NewHook(hp, "ShinyDays 1.00d");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
HookParam hp = {};
|
ConsoleOutput("vnreng:ShinyDays: only work for 1.00 and 1.00d");
|
||||||
hp.address = 0x42ad9c;
|
return false;
|
||||||
hp.text_fun = SpecialGameHookShinyDays;
|
|
||||||
hp.type = USING_UNICODE|USING_STRING|NO_CONTEXT;
|
|
||||||
ConsoleOutput("vnreng: INSERT ShinyDays");
|
|
||||||
NewHook(hp, "ShinyDays 1.00");
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 // disabled as lova does not allow module from being modified
|
#if 0 // disabled as lova does not allow module from being modified
|
||||||
|
Loading…
Reference in New Issue
Block a user