Skip to content

Commit

Permalink
xrCore/ModuleLookup.cpp: replace Russian С with English C
Browse files Browse the repository at this point in the history
Probably, you should sleep at night or you will create commits and 3x
more commits to fix previous commits like me 👍
  • Loading branch information
Xottab-DUTY committed May 28, 2018
1 parent 62858d0 commit 9bfcd4b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/utils/xrAI/xrAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ void execute(LPSTR cmd)

CGameSpawnConstructor(name, output, start, !!no_separator_check);

hFactory->Close();

create_entity = nullptr;
destroy_entity = nullptr;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/xrSE_Factory/xrSE_Factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ BOOL APIENTRY DllMain(HANDLE module_handle, DWORD call_reason, LPVOID reserved)
xr_delete(g_ai_space);
xr_delete(g_object_factory);
if (prop_helper_module)
prop_helper_module->Сlose();
prop_helper_module = nullptr;
//Core._destroy();
break;
}
Expand Down
8 changes: 4 additions & 4 deletions src/xrCore/ModuleLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ ModuleHandle::ModuleHandle(pcstr moduleName, bool dontUnload /*= false*/) : hand

ModuleHandle::~ModuleHandle()
{
Сlose();
Close();
}

void* ModuleHandle::Open(pcstr moduleName)
{
if (IsLoaded())
Сlose();
Close();

Log("Loading DLL:", moduleName);

Expand All @@ -40,7 +40,7 @@ void* ModuleHandle::Open(pcstr moduleName)
return handle;
}

void ModuleHandle::Сlose()
void ModuleHandle::Close()
{
if (dontUnload)
return;
Expand All @@ -49,7 +49,7 @@ void ModuleHandle::Сlose()

#ifdef WINDOWS
closed = FreeLibrary(static_cast<HMODULE>(handle)) != 0;
defined(LINUX)
#elif defined(LINUX)
closed = dlclose(handle) == 0;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/xrCore/ModuleLookup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class XRCORE_API ModuleHandle
~ModuleHandle();

void* Open(pcstr moduleName);
void Сlose();
void Close();

bool IsLoaded() const;

Expand Down
6 changes: 3 additions & 3 deletions src/xrEngine/EngineAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,23 +252,23 @@ void CEngineAPI::CreateRendererList()
if (GEnv.CheckR3 && GEnv.CheckR3())
modes.emplace_back(xr_token("renderer_r3", 4));
else
hRenderR3->Сlose();
hRenderR3->Close();
}

if (hRenderR4->IsLoaded())
{
if (GEnv.CheckR4 && GEnv.CheckR4())
modes.emplace_back(xr_token("renderer_r4", 5));
else
hRenderR4->Сlose();
hRenderR4->Close();
}

if (hRenderRGL->IsLoaded())
{
if (GEnv.CheckRGL && GEnv.CheckRGL())
modes.emplace_back(xr_token("renderer_gl", 6));
else
hRenderRGL->Сlose();
hRenderRGL->Close();
}
modes.emplace_back(xr_token(nullptr, -1));

Expand Down

0 comments on commit 9bfcd4b

Please sign in to comment.