Skip to content

Conversation

@VicSevenT
Copy link
Contributor

No description provided.

#include "sys_task_manager.h"

void ov104_02231F74(UnkStruct_ov104_022320B4 *param0, const MessageLoader *param1, u16 param2, u8 param3, UnkStruct_ov104_0222FEDC *param4);
void FrontierShowMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u16 messageID, u8 canSpeedUp, FrontierMessageOptions *param4);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
void FrontierShowMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u16 messageID, u8 canSpeedUp, FrontierMessageOptions *param4);
void FrontierShowMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u16 messageID, u8 canSpeedUp, FrontierMessageOptions *msgOptions);

u8 scrollFlags;
u8 font;
u8 unused;
} FrontierMessageOptions;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tag struct

static void ov104_02232034(UnkStruct_ov104_022320B4 *param0, const MessageLoader *param1, u32 param2);
static void ov104_02232050(UnkStruct_ov104_022320B4 *param0, enum Font param1, int param2, int param3, int param4);
static void GetMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u32 entryID);
static void PrintMessage(UnkStruct_ov104_022320B4 *param0, enum Font param1, int param2, BOOL canSpeedUp, int param4);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static void PrintMessage(UnkStruct_ov104_022320B4 *param0, enum Font param1, int param2, BOOL canSpeedUp, int param4);
static void PrintMessage(UnkStruct_ov104_022320B4 *param0, enum Font font, int param2, BOOL canSpeedUp, int autoScroll);

u8 unk_50;
StringTemplate *strTemplate;
String *strBuf;
String *string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd go with string and fmtString respectively since that's how these seem to be used in practice and it helps distinguish them better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I was struggling on how to name these sensibly but that makes a lot of sense.

TEXT_BANK_UNK_0547
TEXT_BANK_UNK_0548
TEXT_BANK_UNK_0549
TEXT_BANK_BATTLE_HALL_SCRIPT
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how would you feel about calling these "(facility name)_scene" instead, using the term from your last pr?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

if (param6 != 0xFF) {
ov104_02232050(param0, FONT_MESSAGE, param1, param6, 0);
if (canSpeedUp != 0xFF) {
PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, 0);
PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, AUTO_SCROLL_DISABLED);

PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, 0);
} else {
ov104_02232050(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, param6, 0);
PrintMessage(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, canSpeedUp, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PrintMessage(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, canSpeedUp, 0);
PrintMessage(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, canSpeedUp, AUTO_SCROLL_DISABLED);

@scbroede scbroede merged commit ae622df into pret:main Jan 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants