Skip to content

Commit

Permalink
Fix lwjgl 2 library path specification
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Mar 14, 2024
1 parent 4d4c001 commit c25fad5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fix_lwjgl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ async def rewrite_mc_args(
cls_path = mc_args.index("-cp")

if lib_path is None:
lib_path = os.path.expanduser(f"{BASE_FOLDER}{lwjgl_vers}{ARCH}")
lib_path = os.path.join(BASE_FOLDER, f"lwjgl_{lwjgl_vers}{ARCH}")
if lwjgl_vers == 2:
log(
"LWJGL library path is not supplied, setting it to "
Expand Down Expand Up @@ -665,7 +665,9 @@ def run(args: list[str]) -> int:
)
return 1

if args[0].lower() == "-noop":
first_arg = args[0].lower()

if first_arg == "-noop":
mc_args = args[1:]
log("Not performing any class path rewrites, -noop flag given.")
else:
Expand Down

0 comments on commit c25fad5

Please sign in to comment.