From 7ccd4288274846c165d03c44faf82d59d48ee718 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 25 Nov 2014 11:58:19 -0800 Subject: [PATCH] Allow http:// iso from command line. --- UI/NativeApp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }