@@ -1117,10 +1117,10 @@ namespace RC
11171117 }
11181118 }
11191119
1120- auto UE4SSProgram::read_mods_json (std::string enabled_mods_file , std::vector<ModData>& mod_data_vector) -> void
1120+ auto UE4SSProgram::read_mods_json (std::string mod_list_file , std::vector<ModData>& mod_data_vector) -> void
11211121 {
11221122 std::string buffer{};
1123- glz::parse_error pe = glz::read_file_json (mod_data_vector, enabled_mods_file , buffer);
1123+ glz::parse_error pe = glz::read_file_json (mod_data_vector, mod_list_file , buffer);
11241124 if (pe)
11251125 {
11261126 std::string descriptive_error = glz::format_error (pe, buffer);
@@ -1139,19 +1139,19 @@ namespace RC
11391139 }
11401140 }
11411141
1142- auto UE4SSProgram::write_mods_json (std::string enabled_mods_file , std::vector<ModData>& mod_data_vector) -> void
1142+ auto UE4SSProgram::write_mods_json (std::string mod_list_file , std::vector<ModData>& mod_data_vector) -> void
11431143 {
11441144 std::string mod_data_buffer;
11451145 glz::write<glz::opts{.prettify = true }>(mod_data_vector, mod_data_buffer);
1146- glz::error_code ec = glz::buffer_to_file (mod_data_buffer, enabled_mods_file );
1146+ glz::error_code ec = glz::buffer_to_file (mod_data_buffer, mod_list_file );
11471147 }
11481148
1149- auto UE4SSProgram::convert_legacy_mods_file (StringType legacy_enabled_mods_file , std::vector<ModData>& mod_data_vector) -> void
1149+ auto UE4SSProgram::convert_legacy_mods_file (StringType legacy_mod_list_file , std::vector<ModData>& mod_data_vector) -> void
11501150 {
11511151 Output::send (STR (" Converting legacy mods.txt to mods.json...\n " ));
1152- std::wifstream mods_stream = File::open_file_skip_BOM (legacy_enabled_mods_file );
1152+ std::wifstream mods_stream = File::open_file_skip_BOM (legacy_mod_list_file );
11531153 try {
1154- mods_stream = File::open_file_skip_BOM (legacy_enabled_mods_file );
1154+ mods_stream = File::open_file_skip_BOM (legacy_mod_list_file );
11551155 } catch (const std::exception& e) {
11561156 std::cerr << e.what () << std::endl;
11571157 }
@@ -1200,22 +1200,22 @@ namespace RC
12001200 ProfilerScope ();
12011201 // Part #1: Start all mods that are enabled in mods.json.
12021202 std::filesystem::path mods_directory = UE4SSProgram::get_program ().get_mods_directory ();
1203- std::filesystem::path legacy_enabled_mods_file {mods_directory / " mods.txt" };
1204- std::filesystem::path enabled_mods_file {mods_directory / " mods.json" };
1203+ std::filesystem::path legacy_mod_list_file {mods_directory / " mods.txt" };
1204+ std::filesystem::path mod_list_file {mods_directory / " mods.json" };
12051205 std::vector<UE4SSProgram::ModData> mod_data_vector{};
12061206 UE4SSProgram& program = UE4SSProgram::get_program ();
12071207
1208- if (std::filesystem::exists (enabled_mods_file ))
1208+ if (std::filesystem::exists (mod_list_file ))
12091209 {
1210- UE4SSProgram::read_mods_json (enabled_mods_file .string (), mod_data_vector);
1210+ UE4SSProgram::read_mods_json (mod_list_file .string (), mod_data_vector);
12111211 }
12121212
1213- if (std::filesystem::exists (legacy_enabled_mods_file ))
1213+ if (std::filesystem::exists (legacy_mod_list_file ))
12141214 {
1215- UE4SSProgram::convert_legacy_mods_file (legacy_enabled_mods_file , mod_data_vector);
1215+ UE4SSProgram::convert_legacy_mods_file (legacy_mod_list_file , mod_data_vector);
12161216 }
12171217
1218- UE4SSProgram::write_mods_json (enabled_mods_file .string (), mod_data_vector);
1218+ UE4SSProgram::write_mods_json (mod_list_file .string (), mod_data_vector);
12191219
12201220
12211221 Output::send (STR (" Starting mods (from mods.json load order)...\n " ));
0 commit comments