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

@@ -87,6 +87,10 @@ class UserModule : public XModule {
void Dump();
bool Save(ByteStream* stream) override;
static object_ref<UserModule> Restore(KernelState* kernel_state,
ByteStream* stream, std::string path);
private:
uint32_t guest_xex_header_ = 0;
ModuleFormat module_format_ = kModuleFormatUndefined;