|
|
@ -3,11 +3,7 @@ import subprocess |
|
|
|
|
|
|
|
|
path = os.getcwd() |
|
|
path = os.getcwd() |
|
|
|
|
|
|
|
|
gameplaySettings = [] |
|
|
# FIX: is this actually necessary? |
|
|
mapsSettings = [] |
|
|
|
|
|
miscSettings = [] |
|
|
|
|
|
sourceSettings = [] |
|
|
|
|
|
previousSettings = [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def menuPrinter(list): |
|
|
def menuPrinter(list): |
|
|
@ -15,7 +11,6 @@ def menuPrinter(list): |
|
|
print(str(i) + ": " + list[i]) |
|
|
print(str(i) + ": " + list[i]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: Make a single function that reads settings |
|
|
|
|
|
def settingsReader(mainDict, file): |
|
|
def settingsReader(mainDict, file): |
|
|
tempDict = {} |
|
|
tempDict = {} |
|
|
currentSetting = "" |
|
|
currentSetting = "" |
|
|
@ -44,6 +39,7 @@ def settingsReader(mainDict, file): |
|
|
elif (i == "[Last Used]"): |
|
|
elif (i == "[Last Used]"): |
|
|
currentSetting = "Previous" |
|
|
currentSetting = "Previous" |
|
|
counter = 0 |
|
|
counter = 0 |
|
|
|
|
|
# TODO: Compress/cut down this whole block |
|
|
if i: |
|
|
if i: |
|
|
if (currentSetting == "Source Ports" and i[0] != '['): |
|
|
if (currentSetting == "Source Ports" and i[0] != '['): |
|
|
# sourcePortSettingsRead |
|
|
# sourcePortSettingsRead |
|
|
@ -125,9 +121,6 @@ if not (os.path.isdir('gameplay') and os.path.isdir('maps') and os.path.isdir('m |
|
|
|
|
|
|
|
|
print("Folders Created! Now go forth and fill them! Return when you are ready to DOOM!") |
|
|
print("Folders Created! Now go forth and fill them! Return when you are ready to DOOM!") |
|
|
else: |
|
|
else: |
|
|
# Load Config File |
|
|
|
|
|
# settings = ((open("Settings.txt")).read()).splitlines() |
|
|
|
|
|
|
|
|
|
|
|
# Load Config File and return populated settingsDict |
|
|
# Load Config File and return populated settingsDict |
|
|
|
|
|
|
|
|
blankDict = { |
|
|
blankDict = { |
|
|
@ -155,8 +148,7 @@ else: |
|
|
|
|
|
|
|
|
print(settingsDict) |
|
|
print(settingsDict) |
|
|
|
|
|
|
|
|
# print("Sample Maps listing: ") |
|
|
# TODO: Now that I can read a settings file, create one |
|
|
# menuPrinter(os.listdir("./maps/")) |
|
|
|
|
|
|
|
|
|
|
|
# Store last configs for later use |
|
|
# Store last configs for later use |
|
|
|
|
|
|
|
|
|