Skip to content

Commit 655e7ab

Browse files
committed
xrGame/xrGame.cpp: formatting
1 parent a914f65 commit 655e7ab

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

src/xrGame/xrGame.cpp

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -22,59 +22,59 @@ extern float g_fTimeFactor;
2222

2323
extern "C"
2424
{
25-
XR_EXPORT IFactoryObject* __cdecl xrFactory_Create(CLASS_ID clsid)
26-
{
27-
IFactoryObject* object = object_factory().client_object(clsid);
25+
XR_EXPORT IFactoryObject* __cdecl xrFactory_Create(CLASS_ID clsid)
26+
{
27+
IFactoryObject* object = object_factory().client_object(clsid);
2828
#ifdef DEBUG
29-
if (!object)
30-
return (0);
29+
if (!object)
30+
return (0);
3131
#endif
32-
// XXX nitrocaster XRFACTORY: set clsid during factory initialization
33-
object->GetClassId() = clsid;
34-
return (object);
35-
}
32+
// XXX nitrocaster XRFACTORY: set clsid during factory initialization
33+
object->GetClassId() = clsid;
34+
return (object);
35+
}
3636

37-
XR_EXPORT void __cdecl xrFactory_Destroy(IFactoryObject* O) { xr_delete(O); }
37+
XR_EXPORT void __cdecl xrFactory_Destroy(IFactoryObject* O) { xr_delete(O); }
3838

39-
XR_EXPORT void initialize_library()
40-
{
41-
ZoneScoped;
39+
XR_EXPORT void initialize_library()
40+
{
41+
ZoneScoped;
4242

43-
g_fTimeFactor = pSettings->r_float("alife", "time_factor"); // XXX: find a better place
43+
g_fTimeFactor = pSettings->r_float("alife", "time_factor"); // XXX: find a better place
4444

45-
// Fill ui style token
46-
UIStyles = xr_new<UIStyleManager>();
47-
// register console commands
48-
CCC_RegisterCommands();
49-
// register localization
50-
StringTable().Init();
51-
// keyboard binding
52-
CCC_RegisterInput(); // XXX: Move to xrEngine
45+
// Fill ui style token
46+
UIStyles = xr_new<UIStyleManager>();
47+
// register console commands
48+
CCC_RegisterCommands();
49+
// register localization
50+
StringTable().Init();
51+
// keyboard binding
52+
CCC_RegisterInput(); // XXX: Move to xrEngine
5353
#ifdef DEBUG
54-
g_profiler = xr_new<CProfiler>();
54+
g_profiler = xr_new<CProfiler>();
5555
#endif
5656

57-
ImGui::SetAllocatorFunctions(
58-
[](size_t size, void* /*user_data*/)
57+
ImGui::SetAllocatorFunctions(
58+
[](size_t size, void* /*user_data*/)
5959
{
6060
return xr_malloc(size);
6161
},
62-
[](void* ptr, void* /*user_data*/)
62+
[](void* ptr, void* /*user_data*/)
6363
{
6464
xr_free(ptr);
6565
}
66-
);
67-
ImGui::SetCurrentContext(Device.GetImGuiContext());
68-
}
66+
);
67+
ImGui::SetCurrentContext(Device.GetImGuiContext());
68+
}
6969

70-
XR_EXPORT void finalize_library()
71-
{
72-
xr_delete(UIStyles);
73-
StringTable().Destroy();
74-
CCC_DeregisterInput(); // XXX: Remove if possible
70+
XR_EXPORT void finalize_library()
71+
{
72+
xr_delete(UIStyles);
73+
StringTable().Destroy();
74+
CCC_DeregisterInput(); // XXX: Remove if possible
7575

7676
#ifdef DEBUG
77-
xr_delete(g_profiler);
77+
xr_delete(g_profiler);
7878
#endif
79-
}
79+
}
8080
}

0 commit comments

Comments
 (0)