mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 15:54:03 +08:00
23 lines
635 B
C++
23 lines
635 B
C++
|
||
#include"python/python.h"
|
||
|
||
class Renpy:public ENGINE{
|
||
public:
|
||
Renpy(){
|
||
//使用lunatranslator启动游戏,会把cwd修改成exe所在目录,其中没有.py
|
||
check_by=CHECK_BY::ALL_TRUE;
|
||
// check_by=CHECK_BY::CUSTOM;
|
||
// check_by_target=[](){
|
||
// //Renpy - sample game https://vndb.org/v19843
|
||
// return Util::CheckFile(L"*.py")|| GetModuleHandleW(L"librenpython.dll");
|
||
// };
|
||
};
|
||
bool attach_function(){
|
||
#ifndef _WIN64
|
||
return InsertRenpyHook();
|
||
#else
|
||
return InsertRenpyHook()||InsertRenpy3Hook();
|
||
#endif
|
||
}
|
||
};
|