[*] May as well make this in line with the others
This commit is contained in:
parent
bcf3fabd83
commit
d112179c83
@ -352,6 +352,31 @@ namespace Aurora::IO::FS
|
||||
gApplicationData += kPathSplitter;
|
||||
gHomeDirectory += kPathSplitter;
|
||||
gProgramsFolder += kPathSplitter;
|
||||
|
||||
static const auto Fixup = [](auto &str)
|
||||
{
|
||||
if (str.empty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (str.ends_with('\\'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (str.ends_with('/'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
str += kPathSplitter;
|
||||
};
|
||||
|
||||
Fixup(gUserHomeDirectory);
|
||||
Fixup(gAdminWritableAppDirectory);
|
||||
Fixup(gUserWritableAppData);
|
||||
Fixup(gGlobalWritableAppDirectory);
|
||||
}
|
||||
|
||||
void InitResources()
|
||||
|
Loading…
Reference in New Issue
Block a user