Procházet zdrojové kódy

changed default material/currency values

stan před 3 týdny
rodič
revize
294050c4c7

+ 10 - 10
Sunrise/resources/default_settings.json

@@ -1,5 +1,5 @@
 {
-  "version": 5,
+  "version": 6,
   "core": {
     "logging": {
       "debugger_sink": true,
@@ -152,19 +152,19 @@
       "profile_items": [
         {
           "definition_hash": "0xBC53E66E",
-          "quantity": 100000
+          "quantity": 250000
         },
         {
           "definition_hash": "0x3CF2E8E2",
-          "quantity": 100000
+          "quantity": 999999
         },
         {
           "definition_hash": "0xA7EE4765",
-          "quantity": 100000
+          "quantity": 999999
         },
         {
           "definition_hash": "0xBB97AFD2",
-          "quantity": 100000
+          "quantity": 999999
         },
         {
           "definition_hash": "0xB19439E5",
@@ -172,11 +172,11 @@
         },
         {
           "definition_hash": "0x28D6AC07",
-          "quantity": 50
+          "quantity": 9999
         },
         {
           "definition_hash": "0xE5B38AD2",
-          "quantity": 50
+          "quantity": 999
         },
         {
           "definition_hash": "0xFDC50EA0",
@@ -188,15 +188,15 @@
         },
         {
           "definition_hash": "0x54CCDFF2",
-          "quantity": 50
+          "quantity": 1000
         },
         {
           "definition_hash": "0xDAAB73B4",
-          "quantity": 50
+          "quantity": 1000
         },
         {
           "definition_hash": "0xCD8DA6F2",
-          "quantity": 50
+          "quantity": 1000
         }
       ],
       "settings": {

+ 1 - 1
Sunrise/src/core/settings/settings.h

@@ -18,7 +18,7 @@ namespace sunrise::core::settings {
  * Raise it when a key is renamed, removed, changes meaning, or must take a new default.
  * Adding a key needs no raise, because a missing key already takes its default.
  */
-inline constexpr std::uint32_t kSettingsVersion = 5;
+inline constexpr std::uint32_t kSettingsVersion = 6;
 
 /** Parsed read-only process settings. */
 struct Settings {

+ 2 - 1
Sunrise/src/core/settings/settings_upgrade.cpp

@@ -30,11 +30,12 @@ struct ReplacedMember {
  * Members replaced with the bundled default, each with the version that changed it.
  * A member is listed because its value form changed, or because its default changed.
  */
-constexpr std::array<ReplacedMember, 4> kReplacedMembers{{
+constexpr std::array<ReplacedMember, 5> kReplacedMembers{{
     {"\"key_bindings\"", 3},
     {"\"region_private\"", 5},
     {"\"topology\"", 5},
     {"\"characters\"", 5},
+    {"\"profile_items\"", 6},
 }};
 /** One splice per replaced member, plus the version member itself. */
 constexpr std::size_t kSpliceCapacity = kReplacedMembers.size() + 1;