Skip to content

Commit

Permalink
Fix EU save writing
Browse files Browse the repository at this point in the history
  • Loading branch information
tracktwo committed Aug 1, 2020
1 parent 9a58be0 commit 7404dac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
@@ -1,7 +1,8 @@
# xcomsave

An open-source, portable library for reading XCOM Enemy Within save files, plus some small utilities to convert an
XCOM save to and from a somewhat readable JSON format.
An open-source, portable library for reading XCOM Enemy Unknown/Enemy Within save files, plus some small utilities to convert an
XCOM save to and from a somewhat readable JSON format. The utility supports both EU and EW and has also been tested with
the Android version of the game.

Currently only strategy (geoscape) saves are supported. Tactical saves have a slightly different format that I can't
completely parse yet. I don't have exhaustive save samples for most languages, but I have used to this to successfully
Expand Down
1 change: 1 addition & 0 deletions json2xcom.cpp
Expand Up @@ -108,6 +108,7 @@ bool check_header_shape(xcom_version version, const Json& json, std::string &err
switch (version)
{
case xcom_version::enemy_within:
case xcom_version::enemy_unknown:
return json.has_shape({
{ std::string("version"), Json::NUMBER },
{ std::string("uncompressed_size"), Json::NUMBER },
Expand Down
1 change: 1 addition & 0 deletions xcomwriter.cpp
Expand Up @@ -357,6 +357,7 @@ namespace xcom
{
switch (version)
{
case xcom_version::enemy_unknown:
case xcom_version::enemy_within:
{
unsigned long bytes_compressed = output_size;
Expand Down

0 comments on commit 7404dac

Please sign in to comment.