Skip to content

Commit 9bfcd4b

Browse files
committed
xrCore/ModuleLookup.cpp: replace Russian С with English C
Probably, you should sleep at night or you will create commits and 3x more commits to fix previous commits like me 👍
1 parent 62858d0 commit 9bfcd4b

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

src/utils/xrAI/xrAI.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ void execute(LPSTR cmd)
121121

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

124-
hFactory->Close();
125-
126124
create_entity = nullptr;
127125
destroy_entity = nullptr;
128126
}

src/utils/xrSE_Factory/xrSE_Factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ BOOL APIENTRY DllMain(HANDLE module_handle, DWORD call_reason, LPVOID reserved)
6363
xr_delete(g_ai_space);
6464
xr_delete(g_object_factory);
6565
if (prop_helper_module)
66-
prop_helper_module->Сlose();
66+
prop_helper_module = nullptr;
6767
//Core._destroy();
6868
break;
6969
}

src/xrCore/ModuleLookup.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ ModuleHandle::ModuleHandle(pcstr moduleName, bool dontUnload /*= false*/) : hand
1313

1414
ModuleHandle::~ModuleHandle()
1515
{
16-
Сlose();
16+
Close();
1717
}
1818

1919
void* ModuleHandle::Open(pcstr moduleName)
2020
{
2121
if (IsLoaded())
22-
Сlose();
22+
Close();
2323

2424
Log("Loading DLL:", moduleName);
2525

@@ -40,7 +40,7 @@ void* ModuleHandle::Open(pcstr moduleName)
4040
return handle;
4141
}
4242

43-
void ModuleHandle::Сlose()
43+
void ModuleHandle::Close()
4444
{
4545
if (dontUnload)
4646
return;
@@ -49,7 +49,7 @@ void ModuleHandle::Сlose()
4949

5050
#ifdef WINDOWS
5151
closed = FreeLibrary(static_cast<HMODULE>(handle)) != 0;
52-
defined(LINUX)
52+
#elif defined(LINUX)
5353
closed = dlclose(handle) == 0;
5454
#endif
5555

src/xrCore/ModuleLookup.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class XRCORE_API ModuleHandle
1414
~ModuleHandle();
1515

1616
void* Open(pcstr moduleName);
17-
void Сlose();
17+
void Close();
1818

1919
bool IsLoaded() const;
2020

src/xrEngine/EngineAPI.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,23 +252,23 @@ void CEngineAPI::CreateRendererList()
252252
if (GEnv.CheckR3 && GEnv.CheckR3())
253253
modes.emplace_back(xr_token("renderer_r3", 4));
254254
else
255-
hRenderR3->Сlose();
255+
hRenderR3->Close();
256256
}
257257

258258
if (hRenderR4->IsLoaded())
259259
{
260260
if (GEnv.CheckR4 && GEnv.CheckR4())
261261
modes.emplace_back(xr_token("renderer_r4", 5));
262262
else
263-
hRenderR4->Сlose();
263+
hRenderR4->Close();
264264
}
265265

266266
if (hRenderRGL->IsLoaded())
267267
{
268268
if (GEnv.CheckRGL && GEnv.CheckRGL())
269269
modes.emplace_back(xr_token("renderer_gl", 6));
270270
else
271-
hRenderRGL->Сlose();
271+
hRenderRGL->Close();
272272
}
273273
modes.emplace_back(xr_token(nullptr, -1));
274274

0 commit comments

Comments
 (0)