Skip to content

Commit d9a18dd

Browse files
committed
Fix vpatch being ignored for portable mode things
1 parent 47f0532 commit d9a18dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thcrap/src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ static int SearchCheckExe(search_state_t& state, const fs::directory_entry &ent)
117117

118118
if (use_vpatch) {
119119
#if !CPP20
120-
std::string vpatch_path = vpatch_fn.generic_u8string();
120+
std::string vpatch_path = SearchDecideStoredPathForm(vpatch_fn, std::filesystem::current_path());
121121
#else
122-
std::u8string vpatch_path = vpatch_fn.generic_u8string();
122+
std::u8string vpatch_path = SearchDecideStoredPathForm(vpatch_fn, std::filesystem::current_path());
123123
#endif
124124
if (std::none_of(state.found.begin(), state.found.end(), [vpatch_path](const game_search_result& it) {
125125
#if !CPP20

0 commit comments

Comments
 (0)