mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Convert argv[i]
to Path
type before passing it to File::IsDirectory
* Fix the error by converting `argv[i]` to `Path` type before passing it to `File::IsDirectory`
This commit is contained in:
parent
052d0c3c35
commit
0a8ded56ae
1 changed files with 1 additions and 2 deletions
|
@ -1492,10 +1492,9 @@ 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])) {
|
||||
if (File::IsDirectory(Path(argv[i]))) {
|
||||
// Display the toast warning
|
||||
System_Toast("Warning: Playing unpacked games may cause issues.");
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue