Skip to content

Commit

Permalink
DRM free version support
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzz465 committed Apr 5, 2019
1 parent b686020 commit c2ed4f1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/Modmanager/Modmanager.py
Expand Up @@ -169,10 +169,8 @@ def setXmlpath():#call in Modbase.__init__()
@classmethod
def setLocalPath(cls):
LocalModpath = cls.Steampath + '/steamapps/common/RimWorld/Mods'
if os.path.isdir(cls.Steampath):

if os.path.isdir(LocalModpath):
cls.LocalModpath = LocalModpath
if os.path.isdir(LocalModpath):
cls.LocalModpath = LocalModpath

else:
cls.LocalModpath = RWmanager.askfolderdir(titlename="select Local Mods folder.")
Expand All @@ -181,7 +179,7 @@ def setLocalPath(cls):

@classmethod
def setWorkshopPath(cls):
defaultpath = cls.Steampath + '\\steamapps\\workshop\\content\\294100'
defaultpath = cls.Steampath + r'/steamapps/workshop/content/294100'
if os.path.isdir(defaultpath):
cls.WorkshopModpath = defaultpath

Expand Down

0 comments on commit c2ed4f1

Please sign in to comment.