Add progsigs info to SLXI chunk, move setting to PATX chunk.

This commit is contained in:
Jonathan G Rennison
2015-08-01 18:21:34 +01:00
parent 3a3280e536
commit de14c210db
3 changed files with 4 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ std::vector<uint32> _sl_xv_discardable_chunk_ids; ///< list of chunks
static const uint32 _sl_xv_slxi_chunk_version = 0; ///< current version os SLXI chunk
const SlxiSubChunkInfo _sl_xv_sub_chunk_infos[] = {
{ XSLFI_PROG_SIGS, XSCF_NULL, 1, 1, "programmable_signals", NULL, NULL, "SPRG" },
{ XSLFI_NULL, XSCF_NULL, 0, 0, NULL, NULL, NULL, NULL },// This is the end marker
};

View File

@@ -21,6 +21,7 @@
*/
enum SlXvFeatureIndex {
XSLFI_NULL = 0, ///< Unused value, to indicate that no extended feature test is in use
XSLFI_PROG_SIGS, ///< programmable signals patch
XSLFI_SIZE, ///< Total count of features, including null feature
};

View File

@@ -1464,8 +1464,6 @@ cat = SC_EXPERT
base = GameSettings
var = construction.maximum_signal_evaluations
type = SLE_UINT16
from = 200
to = SL_MAX_VERSION
def = 256
min = 64
max = 4096
@@ -1474,6 +1472,8 @@ str = STR_CONFIG_SETTING_MAX_SIGNAL_EVALUATIONS
strhelp = STR_CONFIG_SETTING_MAX_SIGNAL_EVALUATIONS_HELPTEXT
strval = STR_JUST_COMMA
cat = SC_EXPERT
extver = SlXvFeatureTest(XSLFTO_AND, XSLFI_PROG_SIGS)
patxname = ""programmable_signals.construction.maximum_signal_evaluations""
; previously ai-new setting.
[SDT_NULL]