-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `Dialogue` struct is 4 bytes shorter on PSP. It's hard to tell which field is different without decompiling `ST0_EntityCutscene`. But I re-adjusted the offsets based on what I think the struct is shorter. The `g_Dialogue.prim[5]` is infact missing on PSP. Data is imported using `CH(x)` instead of `_S(X)`. This is because `sotn-str` cannot yet be integrated on the build-chain on PSP. A longer discussion about it happened here: https://discord.com/channels/1079389589950705684/1079395311350452255/1309620547696595015 Some functions were far too different to be ported to the shared headers.
- Loading branch information
Showing
11 changed files
with
198 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
static void CutsceneUnk1(void) { | ||
g_Dialogue.nextLineX = 2; | ||
g_Dialogue.nextCharX = 2; | ||
g_Dialogue.nextLineY = g_Dialogue.startY + 0x14; | ||
g_Dialogue.nextCharX = g_Dialogue.nextLineX = 2; | ||
g_Dialogue.nextCharY = 0; | ||
g_Dialogue.unk12 = 0; | ||
g_Dialogue.nextCharTimer = 0; | ||
g_Dialogue.unk17 = 8; | ||
g_Dialogue.nextLineY = g_Dialogue.startY + 0x14; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
#if defined(VERSION_PSP) | ||
extern void* D_pspeu_0927B6A8; | ||
#endif | ||
static void CutsceneUnk3(s16 arg0) { | ||
RECT rect; | ||
|
||
rect.x = 0; | ||
rect.y = (arg0 * 12) + 384; | ||
rect.w = 64; | ||
rect.x = 0; | ||
rect.h = 12; | ||
ClearImage(&rect, 0, 0, 0); | ||
#if defined(VERSION_PSP) | ||
func_890A3C0(&D_pspeu_0927B6A8, 0, 0x380); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
static void SetCutsceneEnd(u8* ptr) { | ||
#if !defined(VERSION_PSP) | ||
g_Dialogue.scriptEnd = ptr + 0x100000; | ||
#else | ||
g_Dialogue.scriptEnd = ptr; | ||
#endif | ||
g_Dialogue.timer = 0; | ||
g_Dialogue.unk3C = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters