1. 01 Nov, 2016 1 commit
  2. 18 Sep, 2016 1 commit
    • Jason Rhinelander's avatar
      Generalized policies; add catch-and-fine policy stub · a76ec21a
      Jason Rhinelander authored
      This commit reworks the public_sharing settings and terminology into
      more generic "policy" settings and terminology, and adds support for
      enabling a new "catch-pirates" policy.
      (catch-pirates is not yet implemented, and is protected by an exception
      if used, but will come soon).
  3. 24 Jun, 2016 1 commit
    • Jason Rhinelander's avatar
      Use eris::Serialization for data storage · f7672169
      Jason Rhinelander authored
      Most of the nuissance code (block lists, compression, header value
      handling) moved to eris::Serialization; what's left is considerably
      XZ compression is now always enabled; removed the option to enable it.
      The memory-all option is gone now; with xz compression always enabled,
      it didn't do anything --memory-xz didn't already do (unless you
      actually unxz a file manually and pass it in).
      Added --memory CLI option to creativity-gui to let it use more memory
      instead of tmpfiles when running.
      Added --tmpdir to various cli tools that didn't already have it; it gets
      used during decompression (when not using --memory-xz/--memory).
      Converted BookState values to uint32_t instead of unsigned int.  They
      are probably the same, but being explicit makes sure I'm writing 32-bit
      ints in the data file.
      The big-endian/little-endian code is gone (it's now in the
      eris serializer<T> code).
      The big mess of constant header locations is gone.  It was a nuissance
      anyway--the new approach is to just register them all in a special
      method, and let Serializer remember which one goes where.
      Use full eris_id_t for stored ids.  Originally I truncated these to
      32-bit ints to save space, but with compression enabled that really
      isn't saving much.  It also simplifies the code a bit, by being able to
      serialized eris_id_t values directly without a type cast to uint32_t.
      The number of states is no longer stored as a header; it's now just the
      size of the state locations pointer block, which comes right after the
      The reader-libraries outer list is now written when creating a new
      file; previously it was delayed until the first state gets added.  The
      inner list (each reader's library) get created as needed.
      Reordered methods in FileStorage.cpp to put the
      readWhatever/writeWhatever pairs adjacent to each other, which makes it
      a bit easier to see that they are reading/writing the same things.
  4. 05 Feb, 2016 1 commit
    • Jason Rhinelander's avatar
      XZ decompression support · 40ea4c6a
      Jason Rhinelander authored
      Added .crstate.xz read support to all relevant command-line tools,
      along with --memory-all and --memory-xz flags (to enable reading and/or
      decompressing into memory instead of a temp file).
      Got rid of MemoryStorage entirely, since FileStorage is now doing
      MemoryStorage itself sometimes, as of this commit.  FileStorage now has
      a public default constructor that simply creates an in-memory
      file-format storage.
  5. 03 Feb, 2016 1 commit
  6. 11 Dec, 2015 1 commit