diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
commit | c2efba6907fab934a04959b9bb644cf7141cc955 (patch) | |
tree | c047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2MoverPlugin.cpp | |
parent | 1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff) | |
download | t2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip |
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2MoverPlugin.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/T2DLL/T2MoverPlugin.cpp b/src/T2DLL/T2MoverPlugin.cpp index 0b38037..95b4e7e 100644 --- a/src/T2DLL/T2MoverPlugin.cpp +++ b/src/T2DLL/T2MoverPlugin.cpp @@ -17,13 +17,13 @@ BOOL T2MoverPlugin::LoadAllTemplatePlugin(T2WorldDef* worldDef, T2TemplatePlugin typedef T2TemplatePlugin *(MSVC_STDCALL* ConstructTemplatePluginType) (T2PluginSpecifier *, CResFile *, T2WorldDef *, T2MoverPlugin *); void T2MoverPlugin::LoadT2MoverDef(T2WorldDef* worldDef) { - ConstructTemplatePluginType func = (ConstructTemplatePluginType) GetProcAddress((HMODULE) mModuleHandle, "ConstructTemplatePlugin"); + ConstructTemplatePluginType theFunc = (ConstructTemplatePluginType) GetProcAddress((HMODULE) mModuleHandle, "ConstructTemplatePlugin"); #line 26 - _ASSERT(func); + _ASSERT(theFunc); - CResFile resFile; - resFile.OpenResource(mModuleHandle, 1, 'MvDf'); - T2TemplatePlugin *plugin = func(&mSpecifier, &resFile, worldDef, this); + CResFile file; + file.OpenResource(mModuleHandle, 1, 'MvDf'); + T2TemplatePlugin *theDef = theFunc(&mSpecifier, &file, worldDef, this); - mTemplatePlugin = plugin; + mTemplatePlugin = theDef; } |