Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[linux] fix XI_FindFolders in Linux
Browse files Browse the repository at this point in the history
This fixes reading user/save profiles in Linux
  • Loading branch information
q4a committed Jul 4, 2022
1 parent 15be3df commit 69f6e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/xinterface/src/string_service/str_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ uint32_t _InterfaceFindFolders(VS_STACK *pS)
return IFUNCRESULT_FAILED;
}
const char *sFindTemplate = pDat->GetString();
std::filesystem::path p = std::filesystem::u8path(sFindTemplate);
std::filesystem::path p = std::filesystem::u8path(fio->ConvertPathResource(sFindTemplate));
const auto mask = p.filename().string();
const auto vFilenames =
fio->_GetPathsOrFilenamesByMask(p.remove_filename().string().c_str(), mask.c_str(), false, true, false);
Expand Down

0 comments on commit 69f6e41

Please sign in to comment.