Skip to content

Commit

Permalink
PR feedback for OpenRCT2#13125 - localisation for RCT2 data picker di…
Browse files Browse the repository at this point in the history
…alogs; update changelog.txt
  • Loading branch information
keithstellyes committed Oct 8, 2020
1 parent 63f0906 commit 0640a7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fix: [#13074] Entrance and exit ghosts for mazes not being removed.
- Fix: [#13083] Dialog for renaming conflicting track design crops text out.
- Improved: [#13023] Made add_news_item console command last argument, assoc, optional.
- Fix: [#13125] Support localisation for RollerCoaster Tycoon 2 data picker dialogs

0.3.1 (2020-09-27)
------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/openrct2/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ namespace OpenRCT2
{
_localisationService->OpenLanguage(LANGUAGE_ENGLISH_UK);
}
catch (const std::exception&)
catch (const std::exception& eFallback)
{
log_fatal("Failed to open fallback language: %s", e.what());
log_fatal("Failed to open fallback language: %s", eFallback.what());
return false;
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/openrct2/config/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,6 @@ bool config_find_or_browse_install_directory()
try
{
const char* g1DatPath = PATH_SEPARATOR "Data" PATH_SEPARATOR "g1.dat";
char cantFindG1Dat[1024];

while (true)
{
auto uiContext = GetContext()->GetUiContext();
Expand All @@ -815,8 +813,7 @@ bool config_find_or_browse_install_directory()
return true;
}

format_string(cantFindG1Dat, 1024, STR_COULD_NOT_FIND_AT_PATH, &g1DatPath);
uiContext->ShowMessageBox(cantFindG1Dat);
uiContext->ShowMessageBox(format_string(STR_COULD_NOT_FIND_AT_PATH, &g1DatPath));
}
}
catch (const std::exception& ex)
Expand Down

0 comments on commit 0640a7e

Please sign in to comment.