XModule Save/Restore

This commit is contained in:
Dr. Chat
2015-12-05 19:37:48 -06:00
committed by Ben Vanik
parent 93602ed48a
commit 4a3773d2fb
5 changed files with 94 additions and 14 deletions

View File

@@ -80,9 +80,13 @@ class XModule : public XObject {
void* hmodule);
static uint32_t GetHandleFromHModule(void* hmodule);
virtual bool Save(ByteStream* stream) override;
static object_ref<XModule> Restore(KernelState* kernel_state, ByteStream* stream);
protected:
void OnLoad();
void OnUnload();
static std::string NameFromPath(std::string path);
ModuleType module_type_;
std::string name_;