Browse Source

Merge pull request #6572 from Laserlicht/replaceRawString

[1.7.1] replace replaceTextID with replaceRawString
Ivan Savenko 2 weeks ago
parent
commit
f703a3d718
2 changed files with 4 additions and 4 deletions
  1. 2 2
      client/CPlayerInterface.cpp
  2. 2 2
      client/renderSDL/ScreenHandler.cpp

+ 2 - 2
client/CPlayerInterface.cpp

@@ -1799,8 +1799,8 @@ void CPlayerInterface::quickSaveGame()
 {
 	// notify player about saving
 	MetaString txt;
-	txt.appendTextID("vcmi.adventureMap.savingQuickSave");	
-	txt.replaceTextID(QUICKSAVE_PATH);
+	txt.appendTextID("vcmi.adventureMap.savingQuickSave");
+	txt.replaceRawString(QUICKSAVE_PATH);
 	GAME->server().getGameChat().sendMessageGameplay(txt.toString());
 	GAME->interface()->cb->save(QUICKSAVE_PATH);
 	hasQuickSave = true;

+ 2 - 2
client/renderSDL/ScreenHandler.cpp

@@ -728,8 +728,8 @@ void ScreenHandler::screenShot() const
 	auto img = std::make_shared<SDLImageShared>(screen);
 	img->exportBitmap(filePath, nullptr);
 	MetaString txt;
-	txt.appendTextID("vcmi.client.screenShot");	
-	txt.replaceTextID(filePath.string());
+	txt.appendTextID("vcmi.client.screenShot");
+	txt.replaceRawString(filePath.string());
 	if(GAME->interface())
 		GAME->server().getGameChat().sendMessageGameplay(txt.toString());
 }