#ifndef FACTORIO_VERSION_BRIDGE_H #define FACTORIO_VERSION_BRIDGE_H #include #include typedef struct { uint16_t major, minor, patch, build; uint8_t flag; /* Stored byte; semantics have not yet been recovered. */ } FactorioMapVersion; /* 0=success; 1=short header; 2=invalid memory. Parses only the version header. */ int factorio_version_parse(const uint8_t *bytes, size_t length, FactorioMapVersion *out); #endif