From 1a0698b3e30aa54285e581bb06e96168cc1b2080 Mon Sep 17 00:00:00 2001 From: KevinKor01 Date: Thu, 18 Sep 2025 15:44:32 +0300 Subject: [PATCH] Update Config File Generator --- CLI/Config.ini | 3 +++ CLI/Init.py | 20 ++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CLI/Config.ini b/CLI/Config.ini index 1094eaf..14db7f2 100644 --- a/CLI/Config.ini +++ b/CLI/Config.ini @@ -4,4 +4,7 @@ version = 1.21 [ACCOUNT] key = NK id = NA +usernname = NK +friendcode = NK +awards = [] diff --git a/CLI/Init.py b/CLI/Init.py index 130194e..5deef20 100644 --- a/CLI/Init.py +++ b/CLI/Init.py @@ -20,10 +20,11 @@ parser.add_argument('-backend', help="Runs the app in backend mode (no UI)", act #declare default vars class Config(): - - AccountKey = "NK" AccountID = "NA" + AccountUsername = "NoAccount" + AccountFriendCode = "NK" + AccountAwards = [] version = APP_VERSION class ServerObj(): @@ -91,11 +92,26 @@ def WarnMissingConfig(ConfigError): def makeConfig(): + # + # AccountKey = "NK" + # AccountID = "NA" + # AccountUsername = "NoAccount" + # AccountFriendCode = "NK" + # AccountAwards = [] + # + + + + config['DEFAULT'] = {'Version': Config.version} config['ACCOUNT'] = {} config['ACCOUNT']['KEY'] = "NK" config['ACCOUNT']["ID"] = "NA" + config['ACCOUNT']['Usernname'] = "NK" + config['ACCOUNT']['FriendCode'] = "NK" + config['ACCOUNT']['Awards'] = "[]" + with open('Config.ini', 'w') as configfile: config.write(configfile)