Browse Source

Read Full File

master
NCLanceman 3 days ago
parent
commit
87f38303e3
  1. 6
      Settings.txt
  2. 27
      doomstarter.py

6
Settings.txt

@ -21,4 +21,8 @@ PVT_STONE_V12_5.wad
--description=Play as anglo muscle mommy Pvt. Stone as you rip and tear through DOOM!
[Misc]
[Last Used]
uzdoom-alpha ./gameplay/PVT_STONE_V12_5.wad
--SourcePort=UZDoom
--Gameplay=Pvt. Stone
--Maps=None
--Misc=None

27
doomstarter.py

@ -86,6 +86,29 @@ def gameplaySettingsRead(mainDict, game):
return mainDict
def previousSettingsRead(mainDict, prev):
tempDict = {}
counter = 0
for i in range(len(prev)):
tempName = "previous" + str(counter).zfill(2)
print("Examining " + prev[i])
if (prev[i][:2] != "--"):
if len(tempDict) != 0:
mainDict["previous"].update({tempName: tempDict})
tempDict = {}
counter = counter + 1
tempDict["command"] = prev[i]
else:
temp = prev[i][2:].split("=")
tempDict.update({temp[0]: temp[1]})
if len(tempDict) != 0:
mainDict["previous"].update({tempName: tempDict})
return mainDict
# Dynamic Introduction!
print("So it looks like you wanna play some fuckin\' DOOM!")
print("Checking current directories...")
@ -183,6 +206,10 @@ else:
print(os.listdir("./misc/"))
# TODO: Add misc wads to the main dict
print("Listing everything in Previous...")
print(previousSettings)
settingsDict = previousSettingsRead(settingsDict, previousSettings)
print(settingsDict)
# print("Sample Maps listing: ")

Loading…
Cancel
Save