浏览代码

Changes escape character for localized strings so they deal with paths more easily

BearishSun 10 年之前
父节点
当前提交
0ddbb1ffce
共有 2 个文件被更改,包括 1 次插入4 次删除
  1. 1 1
      BansheeCore/Source/BsStringTable.cpp
  2. 0 3
      SBansheeEditor/Source/BsScriptEditorSettings.cpp

+ 1 - 1
BansheeCore/Source/BsStringTable.cpp

@@ -79,7 +79,7 @@ namespace BansheeEngine
 		UINT32 numRemovedChars = 0;
 		for(UINT32 i = 0; i < (UINT32)_string.size(); i++)
 		{
-			if(_string[i] == '\\' && !escaped)
+			if(_string[i] == '^' && !escaped)
 			{
 				numRemovedChars++;
 				escaped = true;

+ 0 - 3
SBansheeEditor/Source/BsScriptEditorSettings.cpp

@@ -182,10 +182,7 @@ namespace BansheeEngine
 
 		for (UINT32 i = 0; i < numEntries; i++)
 		{
-			// Duplicate all slashes as mono seems to remove them during conversion to MonoString
 			WString projectPath = recentProjects[i].path.toWString();
-			projectPath = StringUtil::replaceAll(projectPath, L"\\", L"\\\\");
-
 			MonoString* monoPath = MonoUtil::wstringToMono(MonoManager::instance().getDomain(), projectPath);
 
 			outputPaths.set(i, monoPath);