Skip to content

Commit cd9d1f1

Browse files
author
arch
committed
installer add ofs3 support
1 parent 6634a85 commit cd9d1f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contrib/Installer/mtfg-ofs-extension-installer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
from tqdm import tqdm
1616

1717

18-
VERSION = "v0.2.0"
18+
VERSION = "v0.2.1"
1919
FUNSCRIPT_GENERATOR_RELEASE_URL = "https://github.com/michael-mueller-git/Python-Funscript-Editor/releases"
2020
OFS_EXTENSION_DIR = os.path.expandvars(r'%APPDATA%\OFS\OFS2_data\extensions')
2121
OFS_V1_EXTENSION_DIR = os.path.expandvars(r'%APPDATA%\OFS\OFS_data\extensions')
2222
LATEST_RELEASE_API_URL = 'https://api.github.com/repos/michael-mueller-git/Python-Funscript-Editor/releases/latest'
2323
EXTENSION_NAME = "Funscript Generator Windows"
2424

25+
if os.path.exists(os.path.expandvars(r'%APPDATA%\OFS\OFS3_data')):
26+
OFS_EXTENSION_DIR = os.path.expandvars(r'%APPDATA%\OFS\OFS3_data\extensions')
2527

2628
class DownloadProgressBar(tqdm):
2729
def update_to(self, b=1, bsize=1, tsize=None):
@@ -49,7 +51,7 @@ def is_ofs_installed():
4951
print('check if', OFS_EXTENSION_DIR, 'exists')
5052
if not os.path.exists(OFS_EXTENSION_DIR):
5153
if os.path.exists(OFS_V1_EXTENSION_DIR):
52-
error("Please update your [OFS](https://github.com/OpenFunscripter/OFS/releases) Installation to V2.X.X. Then run this installer again")
54+
error("Please update your [OFS](https://github.com/OpenFunscripter/OFS/releases) Installation. Then run this installer again")
5355
else:
5456
error("OFS is not installed. Please download and install [OFS](https://github.com/OpenFunscripter/OFS/releases). Befor running this installer open OFS once!!")
5557

0 commit comments

Comments
 (0)