Jak3 Build Environment (#3098)

This sets out the bones of a Jak 3 build, many things are stubbed out,
guessed, or copied from Jak 2 but it should at least be good enough to:
run `task set-game-jak3`
launch the repl
run builds from the repl

build outputs themselves are untested but the build itself runs without
errors

---------

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
This commit is contained in:
jabermony
2024-01-16 01:37:16 +00:00
committed by GitHub
parent 637b043293
commit 07427799a6
324 changed files with 72465 additions and 387 deletions
@@ -263,7 +263,7 @@ static void link_v2_or_v4(LinkedObjectFile& f,
const uint8_t* code_end =
&data.at(code_offset + code_size - 1) + 1; // get the pointer to one past the end.
if (version == GameVersion::Jak2) {
if (version >= GameVersion::Jak2) {
while (((code_end - code_start) % 4)) {
code_end++;
}
@@ -689,7 +689,7 @@ static void link_v3(LinkedObjectFile& f,
segment_size++;
}
if (game_version == GameVersion::Jak2) {
if (game_version >= GameVersion::Jak2) {
while (segment_size % 4) {
segment_size++;
}