mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Use error code version on DLC directory iterator.
This commit is contained in:
parent
0010de9d30
commit
65059715a2
1 changed files with 2 additions and 1 deletions
|
|
@ -69,7 +69,8 @@ void KiSystemStartup()
|
|||
// OS mounts game data to D:
|
||||
XamContentCreateEx(0, "D", &gameContent, OPEN_EXISTING, nullptr, nullptr, 0, 0, nullptr);
|
||||
|
||||
for (auto& file : std::filesystem::directory_iterator("./dlc"))
|
||||
std::error_code ec;
|
||||
for (auto& file : std::filesystem::directory_iterator("./dlc", ec))
|
||||
{
|
||||
if (file.is_directory())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue