mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 18:24:55 +00:00
string_view refactor
This commit is contained in:
@@ -94,8 +94,8 @@ hecl::SystemString FindCommonSteamApp(const hecl::SystemChar* name)
|
||||
while (std::regex_search(begin, end, dirMatch, regSteamPath))
|
||||
{
|
||||
std::string match = dirMatch[1].str();
|
||||
hecl::SystemStringView otherInstallDir(match);
|
||||
hecl::SystemString otherAppPath = otherInstallDir.sys_str() + PATH_SEP +
|
||||
hecl::SystemStringConv otherInstallDir(match);
|
||||
hecl::SystemString otherAppPath = hecl::SystemString(otherInstallDir.sys_str()) + PATH_SEP +
|
||||
_S("steamapps") + PATH_SEP + appPath;
|
||||
if (!hecl::Stat(otherAppPath.c_str(), &theStat) && S_ISDIR(theStat.st_mode))
|
||||
return otherAppPath;
|
||||
|
||||
Reference in New Issue
Block a user