@@ -229,15 +229,21 @@ int main(int argc, char** argv) {
229
229
ImGui_Init (window, gl_context);
230
230
ImGui::GetIO ().IniFilename = nullptr ;
231
231
232
- ImGui_tryLoadFont (getBinaryPath () + " DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
233
- ImGui_tryLoadFont (getBinaryPath () + " ../bin/DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
234
- ImGui_tryLoadFont (getBinaryPath () + " ../examples/assets/fonts/DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
235
- ImGui_tryLoadFont (getBinaryPath () + " ../../examples/assets/fonts/DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
236
-
237
- ImGui_tryLoadFont (getBinaryPath () + " fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
238
- ImGui_tryLoadFont (getBinaryPath () + " ../bin/fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
239
- ImGui_tryLoadFont (getBinaryPath () + " ../examples/assets/fonts/fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
240
- ImGui_tryLoadFont (getBinaryPath () + " ../../examples/assets/fonts/fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
232
+ {
233
+ bool isNotLoaded = true ;
234
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
235
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " ../bin/DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
236
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " ../examples/assets/fonts/DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
237
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " ../../examples/assets/fonts/DroidSans.ttf" , kGlobalImGuiScale *14 .0f , false );
238
+ }
239
+
240
+ {
241
+ bool isNotLoaded = true ;
242
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
243
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " ../bin/fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
244
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " ../examples/assets/fonts/fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
245
+ isNotLoaded = isNotLoaded && !ImGui_tryLoadFont (getBinaryPath () + " ../../examples/assets/fonts/fontawesome-webfont.ttf" , kGlobalImGuiScale *14 .0f , true );
246
+ }
241
247
242
248
ImGui_SetStyle ();
243
249
0 commit comments