@@ -22,59 +22,59 @@ extern float g_fTimeFactor;
22
22
23
23
extern " C"
24
24
{
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);
28
28
#ifdef DEBUG
29
- if (!object)
30
- return (0 );
29
+ if (!object)
30
+ return (0 );
31
31
#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
+ }
36
36
37
- XR_EXPORT void __cdecl xrFactory_Destroy (IFactoryObject* O) { xr_delete (O); }
37
+ XR_EXPORT void __cdecl xrFactory_Destroy (IFactoryObject* O) { xr_delete (O); }
38
38
39
- XR_EXPORT void initialize_library ()
40
- {
41
- ZoneScoped;
39
+ XR_EXPORT void initialize_library ()
40
+ {
41
+ ZoneScoped;
42
42
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
44
44
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
53
53
#ifdef DEBUG
54
- g_profiler = xr_new<CProfiler>();
54
+ g_profiler = xr_new<CProfiler>();
55
55
#endif
56
56
57
- ImGui::SetAllocatorFunctions (
58
- [](size_t size, void * /* user_data*/ )
57
+ ImGui::SetAllocatorFunctions (
58
+ [](size_t size, void * /* user_data*/ )
59
59
{
60
60
return xr_malloc (size);
61
61
},
62
- [](void * ptr, void * /* user_data*/ )
62
+ [](void * ptr, void * /* user_data*/ )
63
63
{
64
64
xr_free (ptr);
65
65
}
66
- );
67
- ImGui::SetCurrentContext (Device.GetImGuiContext ());
68
- }
66
+ );
67
+ ImGui::SetCurrentContext (Device.GetImGuiContext ());
68
+ }
69
69
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
75
75
76
76
#ifdef DEBUG
77
- xr_delete (g_profiler);
77
+ xr_delete (g_profiler);
78
78
#endif
79
- }
79
+ }
80
80
}
0 commit comments