Skip to content

Commit

Permalink
Fix IDS_ERR_OPENRES and IDS_PRC_SCREENSHOTERR being misspelled compar…
Browse files Browse the repository at this point in the history
…ed to their Language*.txt counterparts
  • Loading branch information
Fulgen301 committed Sep 18, 2024
1 parent ab75887 commit fa914d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/C4Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@ bool C4Game::InitGame(C4Group &hGroup, C4ScenarioSection *section, bool fLoadSky
auto group = std::make_unique<C4Group>();
if (!group->Open(def.getFile()))
{
LogFatal(C4ResStrTableKey::IDS_ERR_OPENRES, def.getFile(), group->GetError());
LogFatal(C4ResStrTableKey::IDS_ERR_LOAD_OPENRES, def.getFile(), group->GetError());
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/C4GraphicsSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ bool C4GraphicsSystem::SaveScreenshot(bool fSaveAll)
}
else
{
Log(C4ResStrTableKey::IDS_PRC_SCREENSHOTERR, Config.AtExeRelativePath(Config.AtScreenshotPath(szFilename)));
Log(C4ResStrTableKey::IDS_PRC_SCREENSHOTERROR, Config.AtExeRelativePath(Config.AtScreenshotPath(szFilename)));
}

// return success
Expand Down
4 changes: 2 additions & 2 deletions src/C4ResStrTable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ IDS_ERR_JOINPLR_NOFILE=1
IDS_ERR_JOINPLR_NOLOCALCLIENT=2
IDS_ERR_JOINQUEUEPLRS=1
IDS_ERR_LEAGUEERRORREPORTINGUNEXP=1
IDS_ERR_LOAD_OPENRES=2
IDS_ERR_LOAD_PARAMETERS=0
IDS_ERR_LOAD_PLRINFO=1
IDS_ERR_LOAD_RECR_NOEXTRACT=2
Expand All @@ -466,7 +467,6 @@ IDS_ERR_NORECORD=0
IDS_ERR_NOTCONNECTEDTOSERVER=0
IDS_ERR_NOTONACHANNEL=0
IDS_ERR_OPENFILE=2
IDS_ERR_OPENRES=2
IDS_ERR_PLAYERSTOOLONG=1
IDS_ERR_PLEASESELECTAFILEFIRST=0
IDS_ERR_PLRNAME_EMPTY=0
Expand Down Expand Up @@ -1021,7 +1021,7 @@ IDS_PRC_RESUMEREMOVEPLRS=1
IDS_PRC_SAVEPLR=1
IDS_PRC_SCEOWNDEFS=0
IDS_PRC_SCREENSHOT=1
IDS_PRC_SCREENSHOTERR=1
IDS_PRC_SCREENSHOTERROR=1
IDS_PRC_START=0
IDS_PRC_STARTABORTED=0
IDS_PRC_SYNCPLRS=0
Expand Down

0 comments on commit fa914d7

Please sign in to comment.