@@ -130,27 +130,21 @@ void CEngineAPI::InitializeRenderers()
130
130
131
131
void CEngineAPI::Initialize (void )
132
132
{
133
- InitializeRenderers ( );
133
+ hGame = std::make_unique<XRay::Module>( " xrGame " );
134
134
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" );
143
138
144
- pCreate = (Factory_Create*)hGame->getProcAddress (" xrFactory_Create" );
145
- R_ASSERT (pCreate);
139
+ pCreate = (Factory_Create*)hGame->getProcAddress (" xrFactory_Create" );
140
+ R_ASSERT (pCreate);
146
141
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);
150
144
151
145
// ////////////////////////////////////////////////////////////////////////
152
146
// vTune
153
- tune_enabled = FALSE ;
147
+ tune_enabled = false ;
154
148
if (strstr (Core.Params , " -tune" ))
155
149
{
156
150
constexpr pcstr g_name = " vTuneAPI" ;
@@ -194,11 +188,11 @@ void CEngineAPI::CreateRendererList()
194
188
vid_quality_token[0 ].name = xr_strdup (" renderer_r1" );
195
189
196
190
vid_quality_token[1 ].id = -1 ;
197
- vid_quality_token[1 ].name = NULL ;
191
+ vid_quality_token[1 ].name = nullptr ;
198
192
199
193
#else
200
194
// TODO: ask renderers if they are supported!
201
- if (vid_quality_token != NULL )
195
+ if (vid_quality_token != nullptr )
202
196
return ;
203
197
bool bSupports_r2 = false ;
204
198
bool bSupports_r2_5 = false ;
0 commit comments