refactor to not expose tinyxml2 symbols

This commit is contained in:
2025-09-12 19:17:54 -04:00
parent c7dc0db9ce
commit 45865bd4d1
3 changed files with 88 additions and 76 deletions

View File

@@ -18,7 +18,7 @@ void clipboard_copy(Clipboard* self)
if (!reference) break;
Anm2Frame* frame = anm2_frame_from_reference(self->anm2, reference);
if (!frame) break;
anm2_frame_serialize(frame, reference->itemType, nullptr, nullptr, &clipboardText);
anm2_frame_serialize_to_string(frame, reference->itemType, &clipboardText);
clipboard_text_set();
break;
}
@@ -28,7 +28,7 @@ void clipboard_copy(Clipboard* self)
if (!id) break;
Anm2Animation* animation = map_find(self->anm2->animations, *id);
if (!animation) break;
anm2_animation_serialize(animation, nullptr, nullptr, &clipboardText);
anm2_animation_serialize_to_string(animation, &clipboardText);
clipboard_text_set();
break;
}