src/saveload.h
branchgamebalance
changeset 9908 0fa543611bbe
parent 9895 7bd07f43b0e3
child 6308 646711c5feaa
equal deleted inserted replaced
9907:3b068c3a1c74 9908:0fa543611bbe
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file saveload.h */
     2 
     4 
     3 #ifndef SAVELOAD_H
     5 #ifndef SAVELOAD_H
     4 #define SAVELOAD_H
     6 #define SAVELOAD_H
     5 
     7 
     6 #ifdef SIZE_MAX
     8 #ifdef SIZE_MAX
     8 #endif
    10 #endif
     9 
    11 
    10 #define SIZE_MAX ((size_t)-1)
    12 #define SIZE_MAX ((size_t)-1)
    11 
    13 
    12 enum SaveOrLoadResult {
    14 enum SaveOrLoadResult {
    13 	SL_OK     = 0, // completed successfully
    15 	SL_OK     = 0, ///< completed successfully
    14 	SL_ERROR  = 1, // error that was caught before internal structures were modified
    16 	SL_ERROR  = 1, ///< error that was caught before internal structures were modified
    15 	SL_REINIT = 2, // error that was caught in the middle of updating game state, need to clear it. (can only happen during load)
    17 	SL_REINIT = 2, ///< error that was caught in the middle of updating game state, need to clear it. (can only happen during load)
    16 };
    18 };
    17 
    19 
    18 enum SaveOrLoadMode {
    20 enum SaveOrLoadMode {
    19 	SL_INVALID  = -1,
    21 	SL_INVALID  = -1,
    20 	SL_LOAD     =  0,
    22 	SL_LOAD     =  0,