mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
Check if user path argument exists
This commit is contained in:
parent
ffc36e7f3d
commit
a63f1bd27c
@ -31,7 +31,7 @@ std::string GetGamePath() {
|
||||
static std::string Path;
|
||||
if (!Path.empty())
|
||||
return Path;
|
||||
if (options.user_path) {
|
||||
if (options.user_path && std::filesystem::exists(options.user_path)) {
|
||||
Path = options.user_path;
|
||||
} else {
|
||||
HKEY hKey;
|
||||
|
Loading…
x
Reference in New Issue
Block a user