mirror of
https://github.com/open-goal/jak-project
synced 2026-08-09 02:49:19 -04:00
Collision mesh extraction (#1330)
* temp * extract collision mesh * temp * improve * toggle, cleanup
This commit is contained in:
@@ -234,7 +234,8 @@ TypedRef typed_ref_from_basic(const Ref& object, const decompiler::DecompilerTyp
|
||||
const auto& word = object.data->words_by_seg.at(object.seg).at(byte_in_words / 4);
|
||||
|
||||
if (word.kind() != decompiler::LinkedWord::TYPE_PTR) {
|
||||
throw Error("typed_ref_from_basic did not get a type tag (offset {} words)", byte_in_words / 4);
|
||||
throw Error("typed_ref_from_basic did not get a type tag (offset {} words). Got {}",
|
||||
byte_in_words / 4, (int)word.kind());
|
||||
}
|
||||
|
||||
TypedRef result;
|
||||
@@ -252,7 +253,8 @@ Ref deref_label(const Ref& object) {
|
||||
const auto& word = object.data->words_by_seg.at(object.seg).at(byte_in_words / 4);
|
||||
|
||||
if (word.kind() != decompiler::LinkedWord::PTR) {
|
||||
throw Error("deref_label did not get a label (offset {} words)", byte_in_words / 4);
|
||||
throw Error("deref_label did not get a label (offset {} words). Got {} {}", byte_in_words / 4,
|
||||
(int)word.kind(), word.data);
|
||||
}
|
||||
|
||||
const auto& lab = object.data->labels.at(word.label_id());
|
||||
|
||||
Reference in New Issue
Block a user