恍兮惚兮 dbee45b343 lua
2024-06-24 19:09:54 +08:00

23 lines
635 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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
}
};