diff --git a/Source/mpqapi.cpp b/Source/mpqapi.cpp index 02fa14399..c0e68262a 100644 --- a/Source/mpqapi.cpp +++ b/Source/mpqapi.cpp @@ -204,7 +204,7 @@ struct Archive { std::ios::openmode mode = std::ios::in | std::ios::out | std::ios::binary; if (exists) { if (!GetFileSize(name, &size)) { - Log("GetFileSize(\"{}\") failed with \"{}\"", name, std::strerror(errno)); + Log(R"(GetFileSize("{}") failed with "{}")", name, std::strerror(errno)); return false; } #ifdef _DEBUG diff --git a/Source/player.cpp b/Source/player.cpp index 6e2161598..919fd414e 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -682,7 +682,7 @@ void LoadPlrGFX(PlayerStruct &player, player_graphic graphic) app_fatal("PLR:2"); } - sprintf(pszName, "PlrGFX\\%s\\%s\\%s%s.CL2", cs, prefix, prefix, szCel); + sprintf(pszName, R"(PlrGFX\%s\%s\%s%s.CL2)", cs, prefix, prefix, szCel); auto &animationData = player.AnimationData[static_cast(graphic)]; SetPlayerGPtrs(pszName, animationData.RawData, animationData.CelSpritesForDirections, animationWidth); }