#ifndef FACTORIO_SAVE_LAYOUT_H #define FACTORIO_SAVE_LAYOUT_H #include "save_header.h" #include "map_header_bridge.h" /* Bounded host reconstruction of the 2.0.77 base-game scenario envelope. * Only empty startup PropertyTree settings are currently supported. * This locates MapHeader; it does not initialize a Scenario or load a world. */ typedef struct { FactorioMapHeader header; size_t header_offset, next_offset; uint32_t mod_count; } FactorioSaveLayout; int factorio_save_layout_bytes(const uint8_t *prefix, size_t length, FactorioSaveLayout *out, size_t *needed); int factorio_save_map_header(const char *path, FactorioSaveLayout *out); const char *factorio_save_layout_status_string(int status); #endif