@@ -130,27 +130,21 @@ void CEngineAPI::InitializeRenderers()
130130
131131void CEngineAPI::Initialize (void )
132132{
133- InitializeRenderers ( );
133+ hGame = std::make_unique<XRay::Module>( " xrGame " );
134134
135- // game
136- {
137- constexpr pcstr g_name = " xrGame" ;
138- hGame = std::make_unique<XRay::Module>(g_name);
139-
140- if (!hGame->exist ())
141- R_CHK (GetLastError ());
142- R_ASSERT2 (hGame, " Game DLL raised exception during loading or there is no game DLL at all" );
135+ if (!hGame->exist ())
136+ R_CHK (GetLastError ());
137+ R_ASSERT2 (hGame, " Game DLL raised exception during loading or there is no game DLL at all" );
143138
144- pCreate = (Factory_Create*)hGame->getProcAddress (" xrFactory_Create" );
145- R_ASSERT (pCreate);
139+ pCreate = (Factory_Create*)hGame->getProcAddress (" xrFactory_Create" );
140+ R_ASSERT (pCreate);
146141
147- pDestroy = (Factory_Destroy*)hGame->getProcAddress (" xrFactory_Destroy" );
148- R_ASSERT (pDestroy);
149- }
142+ pDestroy = (Factory_Destroy*)hGame->getProcAddress (" xrFactory_Destroy" );
143+ R_ASSERT (pDestroy);
150144
151145 // ////////////////////////////////////////////////////////////////////////
152146 // vTune
153- tune_enabled = FALSE ;
147+ tune_enabled = false ;
154148 if (strstr (Core.Params , " -tune" ))
155149 {
156150 constexpr pcstr g_name = " vTuneAPI" ;
@@ -194,11 +188,11 @@ void CEngineAPI::CreateRendererList()
194188 vid_quality_token[0 ].name = xr_strdup (" renderer_r1" );
195189
196190 vid_quality_token[1 ].id = -1 ;
197- vid_quality_token[1 ].name = NULL ;
191+ vid_quality_token[1 ].name = nullptr ;
198192
199193#else
200194 // TODO: ask renderers if they are supported!
201- if (vid_quality_token != NULL )
195+ if (vid_quality_token != nullptr )
202196 return ;
203197 bool bSupports_r2 = false ;
204198 bool bSupports_r2_5 = false ;
0 commit comments