LunaHook-mirror/LunaHook/engines/python/python.h

25 lines
785 B
C
Raw Normal View History

2024-02-07 20:59:24 +08:00
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;