2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 21:47:59 +00:00

Add hecl::PathRelative()

This commit is contained in:
Jack Andersen
2017-02-24 21:58:36 -10:00
parent 8c3a7da616
commit 89f216d94f
7 changed files with 136 additions and 18 deletions

View File

@@ -151,7 +151,7 @@ int main(int argc, const char** argv)
info.cwd += _S('/');
#endif
if (argv[0][0] != _S('/') && argv[0][0] != _S('\\'))
if (hecl::PathRelative(argv[0]))
ExeDir = hecl::SystemString(cwdbuf) + _S('/');
hecl::SystemString Argv0(argv[0]);
hecl::SystemString::size_type lastIdx = Argv0.find_last_of(_S("/\\"));