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:
@@ -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("/\\"));
|
||||
|
||||
Reference in New Issue
Block a user