mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
fix: insert missing values prior to serialization
This commit is contained in:
1 parent
f839001097
commit
879d0650d4
3 files changed
+96
No files matched your search
@@ -3,6 +3,8 @@ import shlex
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from dzgui.const.boilerplate import config_boilerplate
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Convert legacy dztuirc to config.json
|
Convert legacy dztuirc to config.json
|
||||||
@@ -89,4 +91,8 @@ def rc2json(file: Path) -> str:
|
|||||||
keys["ip_list"] = ips
|
keys["ip_list"] = ips
|
||||||
keys["use_miles"] = False
|
keys["use_miles"] = False
|
||||||
keys["start_tab"] = 0
|
keys["start_tab"] = 0
|
||||||
|
# NOTE: workaround for DZGUI 6 logic (see #375)
|
||||||
|
for key in config_boilerplate.keys():
|
||||||
|
if key not in keys:
|
||||||
|
keys[key] = config_boilerplate[key]
|
||||||
return json.dumps(keys, indent=2)
|
return json.dumps(keys, indent=2)
|
||||||
Vendored
+45
@@ -0,0 +1,45 @@
|
|||||||
|
#Path to DayZ installation
|
||||||
|
steam_path="/tmp"
|
||||||
|
|
||||||
|
#Battlemetrics API key
|
||||||
|
api_key=""
|
||||||
|
|
||||||
|
#Favorited server IP:PORT array
|
||||||
|
ip_list=(
|
||||||
|
)
|
||||||
|
|
||||||
|
#Favorite server to fast-connect to (limit one)
|
||||||
|
fav_server=""
|
||||||
|
|
||||||
|
#Favorite server label (human readable)
|
||||||
|
fav_label=""
|
||||||
|
|
||||||
|
#Custom player name (optional, required by some servers)
|
||||||
|
name=""
|
||||||
|
|
||||||
|
#Set to 1 to perform dry-run and print launch options
|
||||||
|
debug="1"
|
||||||
|
|
||||||
|
#Toggle stable/testing branch
|
||||||
|
branch="testing"
|
||||||
|
|
||||||
|
#Start in fullscreen
|
||||||
|
fullscreen="false"
|
||||||
|
|
||||||
|
#Steam API key
|
||||||
|
steam_api=""
|
||||||
|
|
||||||
|
#Auto-install mods
|
||||||
|
auto_install="2"
|
||||||
|
|
||||||
|
#Automod staging directory
|
||||||
|
staging_dir="/tmp"
|
||||||
|
|
||||||
|
#Path to default Steam client
|
||||||
|
default_steam_path="/tmp"
|
||||||
|
|
||||||
|
#Preferred Steam launch command (for Flatpak support)
|
||||||
|
preferred_client="steam"
|
||||||
|
|
||||||
|
#DZGUI source path
|
||||||
|
src_path=""
|
||||||
Vendored
+45
@@ -0,0 +1,45 @@
|
|||||||
|
#Path to DayZ installation
|
||||||
|
steam_path="/tmp"
|
||||||
|
|
||||||
|
#Battlemetrics API key
|
||||||
|
api_key=""
|
||||||
|
|
||||||
|
#Favorited server IP:PORT array
|
||||||
|
ip_list=(
|
||||||
|
)
|
||||||
|
|
||||||
|
#Favorite server to fast-connect to (limit one)
|
||||||
|
fav_server=""
|
||||||
|
|
||||||
|
#Favorite server label (human readable)
|
||||||
|
fav_label=""
|
||||||
|
|
||||||
|
#Custom player name (optional, required by some servers)
|
||||||
|
name=""
|
||||||
|
|
||||||
|
#Set to 1 to perform dry-run and print launch options
|
||||||
|
debug=""
|
||||||
|
|
||||||
|
#Toggle stable/testing branch
|
||||||
|
branch="testing"
|
||||||
|
|
||||||
|
#Start in fullscreen
|
||||||
|
fullscreen="false"
|
||||||
|
|
||||||
|
#Steam API key
|
||||||
|
steam_api=""
|
||||||
|
|
||||||
|
#Auto-install mods
|
||||||
|
auto_install="0"
|
||||||
|
|
||||||
|
#Automod staging directory
|
||||||
|
staging_dir="/tmp"
|
||||||
|
|
||||||
|
#Path to default Steam client
|
||||||
|
default_steam_path="/tmp"
|
||||||
|
|
||||||
|
#Preferred Steam launch command (for Flatpak support)
|
||||||
|
preferred_client="steam"
|
||||||
|
|
||||||
|
#DZGUI source path
|
||||||
|
src_path=""
|
||||||
Reference in new issue
Block a user