mirror of
https://github.com/open-goal/jak-project
synced 2026-05-26 15:46:14 -04:00
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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user