diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 3f861ceed4..3e2f8ff530 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -32,6 +32,7 @@ #if !defined(MOBILE_DEVICE) #include #endif +#include #if defined(_WIN32) #include @@ -379,8 +380,8 @@ void NativeInit(int argc, const char *argv[], boot_filename = argv[i]; skipLogo = true; - FileInfo info; - if (!getFileInfo(boot_filename.c_str(), &info) || info.exists == false) { + std::unique_ptr fileLoader(ConstructFileLoader(boot_filename)); + if (!fileLoader->Exists()) { fprintf(stderr, "File not found: %s\n", boot_filename.c_str()); exit(1); }