2024-05-06 23:30:27 +08:00
|
|
|
|
|
2024-06-24 19:04:59 +08:00
|
|
|
|
#include"python/python.h"
|
2024-02-07 20:59:24 +08:00
|
|
|
|
|
|
|
|
|
class Renpy:public ENGINE{
|
|
|
|
|
public:
|
|
|
|
|
Renpy(){
|
2024-04-27 00:02:44 +08:00
|
|
|
|
//使用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");
|
|
|
|
|
// };
|
2024-02-07 20:59:24 +08:00
|
|
|
|
};
|
2024-06-24 19:04:59 +08:00
|
|
|
|
bool attach_function(){
|
|
|
|
|
#ifndef _WIN64
|
|
|
|
|
return InsertRenpyHook();
|
|
|
|
|
#else
|
|
|
|
|
return InsertRenpyHook()||InsertRenpy3Hook();
|
|
|
|
|
#endif
|
|
|
|
|
}
|
2024-02-07 20:59:24 +08:00
|
|
|
|
};
|