Use error code version on DLC directory iterator.

This commit is contained in:
Dario 2024-12-17 19:12:03 -03:00
parent 0010de9d30
commit 65059715a2

View file

@ -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())
{