mirror of
https://github.com/GTAIV-Complete-Edition-text/GTA4.CHS
synced 2026-11-26 09:27:55 +08:00
32 lines
815 B
C++
32 lines
815 B
C++
#pragma once
|
|
#include "../common/stdinc.h"
|
|
#include "../common/common.h"
|
|
#include "batch_matching.h"
|
|
#include "char_table.h"
|
|
#include "whm_table.h"
|
|
#include "game.h"
|
|
#include "string_table.h"
|
|
#include "../common/module_path.h"
|
|
|
|
class CPlugin
|
|
{
|
|
public:
|
|
bool Init(HMODULE module);
|
|
HANDLE GetGameModule() const;
|
|
HANDLE GetPluginModule() const;
|
|
std::filesystem::path GetGameRoot() const;
|
|
std::filesystem::path GetPluginAsset(const std::filesystem::path& rest_path) const;
|
|
|
|
//保证进入构造函数之后这些对象已经初始化了
|
|
ModulePath game_module_path, plugin_module_path;
|
|
CCharTable char_table;
|
|
CWhmTable whm_table;
|
|
CStringTable string_table;
|
|
CGame game;
|
|
|
|
private:
|
|
static void RegisterPatchSteps(batch_matching& batch_matcher);
|
|
};
|
|
|
|
extern CPlugin plugin;
|