Name profile's folder .minecraft for compatibility

This commit is contained in:
Fierelier 2021-06-17 13:01:42 +02:00
parent 27191d1110
commit ae4d6a2035

View File

@ -386,7 +386,7 @@ def main():
if lv["profileFolder"] == "1": if lv["profileFolder"] == "1":
profilePath = p(lv["gamePath"],"profiles") profilePath = p(lv["gamePath"],"profiles")
launcherVariables["game_directory"] = p(profilePath,lv["name"],lv["version"]) launcherVariables["game_directory"] = p(profilePath,lv["name"],lv["version"],".minecraft")
if not os.path.isdir(launcherVariables["game_directory"]): os.makedirs(launcherVariables["game_directory"]) if not os.path.isdir(launcherVariables["game_directory"]): os.makedirs(launcherVariables["game_directory"])
os.chdir(launcherVariables["game_directory"]) os.chdir(launcherVariables["game_directory"])