Skip to content

Commit

Permalink
missed commit for case-insensitive find mods.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangff committed Feb 25, 2024
1 parent b975796 commit f9f84f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UE4SS/src/UE4SSProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1172,15 +1172,15 @@ namespace RC
Output::send(SYSSTR("Starting mods (from mods.txt load order)...\n"));

std::filesystem::path mods_directory = UE4SSProgram::get_program().get_mods_directory();
SystemStringType enabled_mods_file{mods_directory / "mods.txt"};
if (!std::filesystem::exists(enabled_mods_file))
auto enabled_mods_file = File::get_path_if_exists(mods_directory, "mods.txt");
if (!enabled_mods_file.has_value())
{
Output::send(SYSSTR("No mods.txt file found...\n"));
}
else
{
// 'mods.txt' exists, lets parse it
SystemStreamType mods_stream{enabled_mods_file};
SystemStreamType mods_stream{ *enabled_mods_file};

SystemStringType current_line;
while (std::getline(mods_stream, current_line))
Expand Down

0 comments on commit f9f84f1

Please sign in to comment.