mirror of
https://github.com/GTAIV-Complete-Edition-text/GTA4.CHS
synced 2026-11-26 09:27:55 +08:00
21 lines
404 B
C++
21 lines
404 B
C++
#pragma once
|
|
#include "stdinc.h"
|
|
|
|
class ModulePath
|
|
{
|
|
public:
|
|
typedef std::filesystem::path path_type;
|
|
|
|
ModulePath() = default;
|
|
explicit ModulePath(HMODULE module);
|
|
|
|
void SetModule(HMODULE module);
|
|
HMODULE GetModule() const;
|
|
path_type GetModuleDir() const;
|
|
path_type GetRelativeSub(const path_type& rest) const;
|
|
|
|
private:
|
|
HMODULE m_Module;
|
|
path_type m_ModuleDir;
|
|
};
|