Skip to content

Commit

Permalink
Fix vpatch being ignored for portable mode things
Browse files Browse the repository at this point in the history
  • Loading branch information
brliron committed Feb 4, 2025
1 parent 47f0532 commit d9a18dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thcrap/src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ static int SearchCheckExe(search_state_t& state, const fs::directory_entry &ent)

if (use_vpatch) {
#if !CPP20
std::string vpatch_path = vpatch_fn.generic_u8string();
std::string vpatch_path = SearchDecideStoredPathForm(vpatch_fn, std::filesystem::current_path());
#else
std::u8string vpatch_path = vpatch_fn.generic_u8string();
std::u8string vpatch_path = SearchDecideStoredPathForm(vpatch_fn, std::filesystem::current_path());
#endif
if (std::none_of(state.found.begin(), state.found.end(), [vpatch_path](const game_search_result& it) {
#if !CPP20
Expand Down

0 comments on commit d9a18dd

Please sign in to comment.