[*] May as well make this in line with the others

This commit is contained in:
Reece Wilson 2023-09-04 16:40:37 +01:00
parent bcf3fabd83
commit d112179c83

View File

@ -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()