Merge branch 'save_ext' into tracerestrict-sx
Conflicts: src/pathfinder/yapf/yapf_costrail.hpp
This commit is contained in:
@@ -76,6 +76,8 @@ enum SlxiSubChunkFlags {
|
||||
XSCF_IGNORABLE_VERSION = 1 << 1, ///< the loader is free to ignore this without aborting the load if the version is greater than the maximum that can be loaded
|
||||
XSCF_EXTRA_DATA_PRESENT = 1 << 2, ///< extra data field is present, extra data in some sub-chunk/feature specific format, not used for anything yet
|
||||
XSCF_CHUNK_ID_LIST_PRESENT = 1 << 3, ///< chunk ID list field is present, list of chunks which this sub-chunk/feature adds to the save game, this can be used to discard the chunks if the feature is unknown
|
||||
|
||||
XSCF_IGNORABLE_ALL = XSCF_IGNORABLE_UNKNOWN | XSCF_IGNORABLE_VERSION, ///< all "ignorable" flags
|
||||
};
|
||||
DECLARE_ENUM_AS_BIT_SET(SlxiSubChunkFlags)
|
||||
|
||||
|
@@ -2469,8 +2469,6 @@ static inline void ClearSaveLoadState()
|
||||
|
||||
delete _sl.lf;
|
||||
_sl.lf = NULL;
|
||||
|
||||
SlXvSetCurrentState();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2782,6 +2780,8 @@ static SaveOrLoadResult DoLoad(LoadFilter *reader, bool load_check)
|
||||
GamelogStopAction();
|
||||
}
|
||||
|
||||
SlXvSetCurrentState();
|
||||
|
||||
return SL_OK;
|
||||
}
|
||||
|
||||
@@ -2841,6 +2841,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, boo
|
||||
return SL_REINIT;
|
||||
}
|
||||
GamelogStopAction();
|
||||
SlXvSetCurrentState();
|
||||
return SL_OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user