diff --git a/.vs/launch.vs.json b/.vs/launch.vs.json index 801a04453d..b88abb0e5c 100644 --- a/.vs/launch.vs.json +++ b/.vs/launch.vs.json @@ -381,7 +381,7 @@ "projectTarget": "extractor.exe (bin\\extractor.exe)", "name": "Tools - Extractor - Full", "args": [ - "\"E:\\ISOs\\Jak\\Jak 1.iso\"" + "D:\\ISOs\\Jak\\Temp\\bad.iso" ] }, { diff --git a/goalc/build_level/jak1/build_level.cpp b/goalc/build_level/jak1/build_level.cpp index e3051f2b36..f1bc5c77d4 100644 --- a/goalc/build_level/jak1/build_level.cpp +++ b/goalc/build_level/jak1/build_level.cpp @@ -191,6 +191,9 @@ bool run_build_level(const std::string& input_file, for (auto& dgo : config.dgo_names) { // remove "DGO/" prefix const auto& dgo_name = dgo.substr(4); + ASSERT_MSG( + db.obj_files_by_dgo.contains(dgo_name), + fmt::format("{} DGO expected to be part of the ObjectDB but it is not!", dgo_name)); const auto& files = db.obj_files_by_dgo.at(dgo_name); auto art_groups = find_art_groups(processed_art_groups,