Skip to content

Commit

Permalink
remove string extract logic from game_windows
Browse files Browse the repository at this point in the history
some related code changed during the rebase and this no longer appears to be necessary
  • Loading branch information
enewey committed Oct 13, 2023
1 parent c4f1ac3 commit 9955c86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/game_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ inline Game_Strings::Str_t Game_Strings::Set(Str_Params params, Str_t string) {

auto& s = _strings[params.string_id - 1];
s = string;
if (params.extract)
if (params.extract) {
s = Extract(s, params.hex);
}
return s;
}

Expand Down
3 changes: 1 addition & 2 deletions src/game_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ void Game_Windows::Window_User::Refresh(bool& async_wait) {

fonts.emplace_back(font);

std::string extracted_text = Main_Data::game_strings->Extract(ToString(text.text), false);
std::stringstream ss(extracted_text);
std::stringstream ss(ToString(text.text));
std::string out;
PendingMessage pm;
while (Utils::ReadLine(ss, out)) {
Expand Down

0 comments on commit 9955c86

Please sign in to comment.