mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 02:00:41 +02:00
Fixes crash on empty path config string
If the config exists as an empty string then this would crash
This commit is contained in:
1 parent
82c2b49a2e
commit
e3380957ba
1 file changed
+4
@@ -90,6 +90,10 @@ namespace FEXCore::Config {
|
||||
}
|
||||
|
||||
std::string ExpandPath(std::string PathName) {
|
||||
if (PathName.empty()) {
|
||||
return {};
|
||||
}
|
||||
|
||||
std::filesystem::path Path{PathName};
|
||||
|
||||
// Expand home if it exists
|
||||
|
||||
Reference in new issue
Block a user