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:
Vishwanath Martur 2024-11-27 07:59:59 +05:30
parent 052d0c3c35
commit 0a8ded56ae

View file

@ -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;