FilePath: Added ability to retreive exectuable file path.

This commit is contained in:
Бранимир Караџић
2023-06-29 22:23:10 -07:00
parent 781ad4a290
commit db15e54924
3 changed files with 65 additions and 19 deletions

View File

@@ -133,3 +133,30 @@ TEST_CASE("FilePath temp", "[filepath]")
REQUIRE(bx::removeAll(tmp, &err) );
REQUIRE(err.isOk() );
}
TEST_CASE("FilePath special", "[filepath]")
{
{
bx::FilePath tmp(bx::Dir::Current);
bx::StringView sv(tmp);
DBG("%S", &sv);
}
{
bx::FilePath tmp(bx::Dir::Executable);
bx::StringView sv(tmp);
DBG("%S", &sv);
}
{
bx::FilePath tmp(bx::Dir::Home);
bx::StringView sv(tmp);
DBG("%S", &sv);
}
{
bx::FilePath tmp(bx::Dir::Temp);
bx::StringView sv(tmp);
DBG("%S", &sv);
}
}