Browse Source

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

BearishSun 10 years ago
parent
commit
0ddbb1ffce

+ 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);