jak-project/goalc
massimilianodelliubaldini 7dbacc72d3
Some checks are pending
Build / 🖥️ Windows (push) Waiting to run
Build / 🐧 Linux (push) Waiting to run
Build / 🍎 MacOS (push) Waiting to run
Lint / 📝 Optional Checks (push) Waiting to run
Lint / 📝 Formatting (push) Waiting to run
Lint / 📝 Required Checks (push) Waiting to run
Parameterize the iso_data folder for goalc (#3692)
I hope this is everything I needed, and nothing I didn't.

## What's Changed

This update adds a command-line parameter to goalc, `--iso-path`.
Providing a path to a directory like
`D:\Files\Repositories\ArchipelaGOAL\iso_data\jak1` will inform the
compiler to use that directory instead.

## Why is this useful?

When combined with `--proj-path`, the compiler can be pointed to a
completely different project folder, given the `(mi)` command, and
immediately begin building from that directory, with everything it
needs. This eliminates the need to copy `iso_data` to multiple `data`
directories.

If a subsequent change to the Launcher is made, each mod could be passed
an --iso-path pointing to a single shared folder, allowing mods to each
run their own REPL _without_ requiring a copy of `iso_data` in a
subfolder.

## Independent testing required!

My local repositories are a little suspect, with a mod, a fork of
mod-base, and a fork of jak-project, all on the same drive. My
decompiler_out and iso_data folders are in the mod repo, not mod-base
nor jak-project. So what I did was make the change in the mod-base fork,
point `--proj-path and --iso-path` to the mod folders, and then ran
`(mi)`. The output showed a build starting with no errors.

Then I had to create this PR, which my fork of mod-base is unable to do,
so I created a patch file, forked jak-project, then applied the patch
there.

All this is to say that it would be preferable if someone could apply
this code to their own installation and see if it works. Even I wouldn't
take my own word for this.

---------

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
2024-10-18 00:03:14 -04:00
..
build_actor Background improvements for custom levels (#3672) 2024-09-21 11:39:50 -04:00
build_level custom levels: support vanilla skies and texture remapping tables (#3691) 2024-09-30 17:18:28 +02:00
compiler [jak3] Fix alpha for prims, entity-table (#3609) 2024-07-27 12:46:33 -04:00
data_compiler deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
debugger debugger: reverse the order the backtrace is printed (#3474) 2024-04-16 05:22:31 +01:00
emitter deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
listener deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
make Parameterize the iso_data folder for goalc (#3692) 2024-10-18 00:03:14 -04:00
regalloc Port bones.gc math to GOAL (#3425) 2024-03-15 20:31:11 -04:00
CMakeLists.txt Background improvements for custom levels (#3672) 2024-09-21 11:39:50 -04:00
main.cpp Parameterize the iso_data folder for goalc (#3692) 2024-10-18 00:03:14 -04:00
simple_main.cpp game: Remove temporary CLI arg shim in gk (#2532) 2023-04-22 14:13:57 -04:00