mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-24 13:22:28 +00:00
added downloads folder check
This commit is contained in:
parent
61a52d86d9
commit
5e708c83fa
1 changed files with 10 additions and 0 deletions
|
|
@ -136,6 +136,16 @@ namespace Ryujinx.Ava
|
|||
"Ryujinx is not intended to be run as administrator.", "Ok");
|
||||
return 0;
|
||||
}
|
||||
|
||||
string downloadsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
|
||||
|
||||
if (Environment.CurrentDirectory.StartsWithIgnoreCase(downloadsPath))
|
||||
{
|
||||
Logger.Error?.PrintMsg(LogClass.Application, "Ryujinx is not intended to be run from the Downloads folder. Exiting...");
|
||||
macOSNativeInterop.SimpleMessageBox($"Ryujinx {Version}",
|
||||
"Ryujinx is not intended to be run from the Downloads folder.", "Ok");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (OperatingSystem.IsLinux())
|
||||
|
|
|
|||
Loading…
Reference in a new issue