mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 08:49:03 +00:00
Add source code for ctrtool
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include <tc/io/PathUtil.h>
|
||||
#include <tc/string.h>
|
||||
|
||||
void tc::io::PathUtil::pathToWindowsUTF16(const tc::io::Path& path, std::u16string& out)
|
||||
{
|
||||
out = path.to_u16string(tc::io::Path::Format::Win32);
|
||||
}
|
||||
|
||||
void tc::io::PathUtil::pathToUnixUTF8(const tc::io::Path& path, std::string& out)
|
||||
{
|
||||
out = path.to_string(tc::io::Path::Format::POSIX);
|
||||
}
|
||||
Reference in New Issue
Block a user