LunaHook-mirror/LunaHook/engines/python/python.h
恍兮惚兮 ca1c76d100 renpy
1

1

Update python.cpp

Update python.cpp

Update python.cpp

Update python.cpp
2024-03-08 22:04:43 +08:00

25 lines
785 B
C

bool InsertRenpy3Hook();
bool InsertRenpyHook();
extern "C" __declspec(dllexport) const wchar_t* internal_renpy_call_host(const wchar_t* text,int split);
typedef enum {PyGILState_LOCKED, PyGILState_UNLOCKED}
PyGILState_STATE;
typedef PyGILState_STATE (*PyGILState_Ensure_t)(void);
typedef void (*PyGILState_Release_t)(PyGILState_STATE);
typedef int (*PyRun_SimpleString_t)(const char *command);
void LoadPyRun(HMODULE module);
void PyRunScript(const char* script);
void patchfontfunction();
void hook_internal_renpy_call_host();
void hookrenpy(HMODULE module);
inline PyRun_SimpleString_t PyRun_SimpleString;
inline PyGILState_Release_t PyGILState_Release;
inline PyGILState_Ensure_t PyGILState_Ensure;
extern const char* Renpy_hook_text;
extern const char* Renpy_hook_font;