mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-20 02:15:32 +00:00
Switch over to using TString to represent filesystem paths instead of TWideString. Fixed FileUtil not handling UTF-8 paths with Unicode characters correctly.
This commit is contained in:
@@ -66,11 +66,11 @@ void CExportGameDialog::InitUI(QString ExportDir)
|
||||
|
||||
ExportDir.replace('/', '\\');
|
||||
|
||||
TWideString DefaultNameMapPath = CAssetNameMap::DefaultNameMapPath(mGame);
|
||||
if (!FileUtil::Exists(DefaultNameMapPath)) DefaultNameMapPath = L"";
|
||||
TString DefaultNameMapPath = CAssetNameMap::DefaultNameMapPath(mGame);
|
||||
if (!FileUtil::Exists(DefaultNameMapPath)) DefaultNameMapPath = "";
|
||||
|
||||
TWideString DefaultGameInfoPath = CGameInfo::GetDefaultGameInfoPath(mGame);
|
||||
if (!FileUtil::Exists(DefaultGameInfoPath)) DefaultGameInfoPath = L"";
|
||||
TString DefaultGameInfoPath = CGameInfo::GetDefaultGameInfoPath(mGame);
|
||||
if (!FileUtil::Exists(DefaultGameInfoPath)) DefaultGameInfoPath = "";
|
||||
|
||||
mpUI->OutputDirectoryLineEdit->setText(ExportDir);
|
||||
mpUI->AssetNameMapLineEdit->setText(TO_QSTRING(DefaultNameMapPath));
|
||||
|
||||
Reference in New Issue
Block a user