mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Fix more gcc warnings
This commit is contained in:
+7
-4
@@ -210,10 +210,13 @@ InputStreamP load_resource_text(const String& name) {
|
||||
int len = ::SizeofResource(wxGetInstance(), hResource);
|
||||
return shared(new wxMemoryInputStream(data, len));
|
||||
#else
|
||||
static String path = wxStandardPaths::Get().GetDataDir() + _("/resource/");
|
||||
static String local_path = wxStandardPaths::Get().GetUserDataDir() + _("/resource/");
|
||||
if (wxFileExists(path + name)) return shared(new wxFileInputStream(path + name));
|
||||
else return shared(new wxFileInputStream(local_path + name));
|
||||
static String path = wxStandardPaths::Get().GetDataDir() + _("/resource/");
|
||||
static String local_path = wxStandardPaths::Get().GetUserDataDir() + _("/resource/");
|
||||
if (wxFileExists(path + name)) {
|
||||
return shared(new wxFileInputStream(path + name));
|
||||
} else {
|
||||
return shared(new wxFileInputStream(local_path + name));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user