-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathFOLON-Downgrader.py
53 lines (45 loc) · 1.27 KB
/
FOLON-Downgrader.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import argparse
import os
import Utility as Util
def directory(raw_path):
if not os.path.isdir(raw_path):
raise argparse.ArgumentTypeError(
'"{}" is not an existing directory'.format(raw_path)
)
return os.path.abspath(raw_path)
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="A Fallout 4 downgrader application by Team FOLON"
)
parser.add_argument(
"-p",
"--path",
required=False,
metavar="",
type=directory,
help="Path to steam(The directory containing a Fallout4.exe file)",
)
parser.add_argument(
"-l",
"-L",
"--linux",
"--Linux",
help="Use commandline mode (For linux mostly).",
action="store_true",
)
args = parser.parse_args()
if args.linux:
from LinuxDowngrader import Linux
Linux()
elif args.path:
import WindowsDowngrader
Settings = Util.Read_Settings()
Settings["Steps"] = 3
Util.Write_Settings(Settings)
WindowsDowngrader.Windows(args.path)
else:
import WindowsDowngrader
Settings = Util.Read_Settings()
Settings["Steps"] = 4
Util.Write_Settings(Settings)
WindowsDowngrader.Windows()