// Sharing a save (save_share.c): the menu's Export writes the save the game would load next into one zip, for a bug // report or another player, and its Import checks such a zip and leaves its save for the game's next start // (fs_host.c import_pending). The launcher writes and reads the same zip (launcher/saves.py export_save, import_zip). #pragma once #include #ifdef __cplusplus extern "C" { #endif typedef enum { SAVE_SHARE_OK, SAVE_SHARE_NO_SAVE, // export: the game has not saved yet SAVE_SHARE_READ_FAILED, // export: a save file could not be read; import: the zip could not be read SAVE_SHARE_WRITE_FAILED, // export: the zip could not be written; import: its save could not be put in place SAVE_SHARE_NOT_A_SAVE, // import: not a zip of an NX2navi save (no manifest, another format, no save files) SAVE_SHARE_OTHER_GAME, // import: the manifest names another game SAVE_SHARE_NEWER, // import: a newer NX2navi made it, in a format this one does not know SAVE_SHARE_DAMAGED, // import: a member's data or CRC is wrong SAVE_SHARE_UNSAFE, // import: a path outside the save, a link, or far more than a save } SaveShareResult; // Writes NX2navi-save-_