mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 03:05:18 +02:00
Fix toast warning in SDL build
Related to #18951 Add toast warning for unpacked ISO directories in SDL build. * Check if the path to a directory containing an unpacked ISO is passed as a command line argument. * Display the toast warning "Warning: Playing unpacked games may cause issues." if an unpacked ISO directory is detected.
This commit is contained in:
+10
-4
@@ -1,7 +1,3 @@
|
||||
// SDL/EGL implementation of the framework.
|
||||
// This is quite messy due to platform-specific implementations and #ifdef's.
|
||||
// If your platform is not supported, it is suggested to use Qt instead.
|
||||
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <pwd.h>
|
||||
@@ -1496,6 +1492,16 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
bool waitOnExit = g_Config.iGPUBackend == (int)GPUBackend::OPENGL;
|
||||
|
||||
// P2cd0
|
||||
// Check if the path to a directory containing an unpacked ISO is passed as a command line argument
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (File::IsDirectory(argv[i])) {
|
||||
// Display the toast warning
|
||||
System_Toast("Warning: Playing unpacked games may cause issues.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!mainThreadIsRender) {
|
||||
// Vulkan mode uses this.
|
||||
// We should only be a message pump. This allows for lower latency
|
||||
|
||||
Reference in New Issue
Block a user