Update plugin.py for compatibility with latest psx-modding-toolchain commit

This commit is contained in:
Superstarxalien 2023-12-16 09:56:23 -04:00 committed by GitHub
parent fec09f636f
commit 14182a740d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,13 @@ def warning() -> None:
print("rename the folder to ctr-tools and put it in CrashTeamRacing/plugins/")
def extract(plugin_path: str, game_path: str, game_version: None) -> None:
if os.path.isdir(plugin_path + "ctr-tools"):
if os.path.join(plugin_path, "ctr-tools"):
os.system(plugin_path + "ctr-tools/bigtool.exe " + game_path + "BIGFILE.BIG")
else:
warning()
def build(plugin_path: str, game_path: str, game_version: None) -> None:
if os.path.isdir(plugin_path + "ctr-tools"):
if os.path.join(plugin_path, "ctr-tools"):
os.system(plugin_path + "ctr-tools/bigtool.exe " + game_path + "bigfile.txt")
else:
warning()