Skip to content

Commit

Permalink
Merge pull request #5624 from MjnMixael/xstr_debug_filter
Browse files Browse the repository at this point in the history
xstr debug filter
  • Loading branch information
JohnAFernandez committed Nov 1, 2023
2 parents 8693fa3 + 1dc7012 commit 3ba2193
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/localization/localize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,10 @@ const char *XSTR(const char *str, int index, bool force_lookup)
return str;
}

#ifndef NDEBUG
nprintf(("XSTR", "Localizing String: %i, \"%s\"\n", index, str));
#endif

// for some internal strings, such as the ones we loaded using $Has XStr:,
// we want to force a lookup even if we're normally untranslated
if (Lcl_current_lang != LCL_UNTRANSLATED || force_lookup)
Expand Down

0 comments on commit 3ba2193

Please sign in to comment.