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

+13
View File
@@ -8,7 +8,20 @@
// The only place the model meets XML: reading and writing documents (with the SourceDocument copy) and clipboard text.
namespace anm2ed::model
{
// What the game's copy of a save can't keep as it is: how many of each.
struct IsaacIssues
{
int easedFrames{};
int groupTransforms{};
int shearFrames{};
int shaderFrames{};
int triggerSounds{};
bool operator==(const IsaacIssues&) const = default;
};
Model model_make();
IsaacIssues isaac_issues_get(const Model&);
bool model_load(Model&, const std::filesystem::path&, std::string* = nullptr);
bool model_load_string(Model&, std::string_view, std::string* = nullptr);
bool model_save(const Model&, const std::filesystem::path&, std::string* = nullptr, Options = {});