diff --git a/Settings.txt b/Settings.txt index 574386c..a97961d 100644 --- a/Settings.txt +++ b/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 diff --git a/doomstarter.py b/doomstarter.py index b446af3..6cec202 100644 --- a/doomstarter.py +++ b/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: ")