Isaac compatibility warning on save

Settings > File > Isaac Compatibility Warning (on by default): saving in
the Isaac format first lists what the game's copy can't keep as it is -
eased frames (baked into one-frame steps), group transforms (baked into
their items), shear and shaders (dropped), trigger sounds (dropped) - with
Save Anyway / Cancel. model::isaac_issues_get counts them (tested on the
fixtures).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 21:05:57 -04:00
1 parent 251d04848a
commit 8fb28ef30a
8 files changed
+104

No files matched your search

+11
View File
@@ -314,3 +314,14 @@ TEST_CASE("markers stay in the editor's copy and bound playback")
playback.tick(10, 2, 6, true, 0.5f);
CHECK(playback.time == doctest::Approx(4.0f));
}
TEST_CASE("isaac_issues_get counts what the game's copy changes")
{
CHECK(model::isaac_issues_get(fixture_load("01_minimal.anm2")) == model::IsaacIssues{});
CHECK(model::isaac_issues_get(fixture_load("07_special_interpolation.anm2")).easedFrames == 5);
CHECK(model::isaac_issues_get(fixture_load("04_group_root_transform.anm2")).groupTransforms > 0);
auto shaders = model::isaac_issues_get(fixture_load("06_shaders.anm2"));
CHECK(shaders.shaderFrames > 0);
CHECK(shaders.shearFrames > 0);
CHECK(model::isaac_issues_get(fixture_load("02_items.anm2")).triggerSounds > 0);
}