SSBM Decomp
Loading...
Searching...
No Matches
mnsnap.h File Reference
#include <placeholder.h>
#include <platform.h>
#include <baselib/forward.h>
#include <dolphin/gx.h>

Go to the source code of this file.

Functions

void mnSnap_80253184 (void)
 Recursively loads snapshot thumbnails from memory card.
 
void mnSnap_80253640 (s32 page)
 Loads a page of snapshot thumbnails and updates navigation arrows.
 
void mnSnap_80253964 (void)
 Updates the SIS text labels showing thumbnail numbers and page info.
 
void mnSnap_80253AE4 (s32 mode)
 Animates the 5 sub-menu option buttons. mode=0 for enter, mode=1 for exit.
 
s32 mnSnap_80253BE0 (u64 buttons, s32 *cursor, s32 count)
 Processes D-pad/trigger inputs to navigate a 2D grid of snapshots.
 
void fn_80253DB4 (HSD_GObj *gobj, s32 rendermode)
 Renders the main content GObj only when in photo-browsing states (>= 4).
 
void fn_80253DE8 (HSD_GObj *gobj, s32 rendermode)
 Renders the arrow/slot selector GObj only during slot selection (state 2).
 
void fn_80253E1C (HSD_GObj *gobj, s32 rendermode)
 Renders the cursor GObj during menu (state 6) or full-screen view (10-11).
 
void fn_80253E5C (HSD_GObj *gobj, s32 rendermode)
 Renders the warning/dialog GObj only when a dialog is active.
 
void mnSnap_80253E90 (s32 idx)
 Queries memory card status for slot idx and stores the photo count/error.
 
void mnSnap_80253F60 (void)
 Animates the memory card slot selector highlights.
 
void mnSnap_80254014 (void)
 Resets the sub-menu view and shows all 5 option buttons.
 
void mnSnap_8025409C (HSD_JObj *jobj_flag)
 Configures the Yes/No dialog button positions based on language setting.
 
void mnSnap_80254298 (void)
 Resets to slot selection state after a card error or empty card.
 
s32 mnSnap_8025441C (u64 buttons)
 Handles Yes/No dialog button inputs.
 
void fn_802545C4 (void)
 Main per-frame update for the Snap menu.
 
void fn_80257D7C (void)
 Handles the Back button to exit the Snap menu and cleans up GObjs/text.
 
void mnSnap_80257F24 (void)
 Entry point: initializes the Snap menu scene.
 

Function Documentation

◆ mnSnap_80253184()

void mnSnap_80253184 ( void  )

Recursively loads snapshot thumbnails from memory card.

◆ mnSnap_80253640()

void mnSnap_80253640 ( s32  page)

Loads a page of snapshot thumbnails and updates navigation arrows.

◆ mnSnap_80253964()

void mnSnap_80253964 ( void  )

Updates the SIS text labels showing thumbnail numbers and page info.

◆ mnSnap_80253AE4()

void mnSnap_80253AE4 ( s32  mode)

Animates the 5 sub-menu option buttons. mode=0 for enter, mode=1 for exit.

◆ mnSnap_80253BE0()

s32 mnSnap_80253BE0 ( u64  buttons,
s32 cursor,
s32  count 
)

Processes D-pad/trigger inputs to navigate a 2D grid of snapshots.

Returns
0 if no movement, 1 if moved within page, 2 if page changed.

◆ fn_80253DB4()

void fn_80253DB4 ( HSD_GObj gobj,
s32  rendermode 
)

Renders the main content GObj only when in photo-browsing states (>= 4).

◆ fn_80253DE8()

void fn_80253DE8 ( HSD_GObj gobj,
s32  rendermode 
)

Renders the arrow/slot selector GObj only during slot selection (state 2).

◆ fn_80253E1C()

void fn_80253E1C ( HSD_GObj gobj,
s32  rendermode 
)

Renders the cursor GObj during menu (state 6) or full-screen view (10-11).

◆ fn_80253E5C()

void fn_80253E5C ( HSD_GObj gobj,
s32  rendermode 
)

Renders the warning/dialog GObj only when a dialog is active.

◆ mnSnap_80253E90()

void mnSnap_80253E90 ( s32  idx)

Queries memory card status for slot idx and stores the photo count/error.

◆ mnSnap_80253F60()

void mnSnap_80253F60 ( void  )

Animates the memory card slot selector highlights.

Pointer arithmetic required to match: walk[0x94] reads card_status[i], and (snap + byte_off + 0x98) accesses slot_a_jobj / slot_b_jobj.

◆ mnSnap_80254014()

void mnSnap_80254014 ( void  )

Resets the sub-menu view and shows all 5 option buttons.

◆ mnSnap_8025409C()

void mnSnap_8025409C ( HSD_JObj jobj_flag)

Configures the Yes/No dialog button positions based on language setting.

◆ mnSnap_80254298()

void mnSnap_80254298 ( void  )

Resets to slot selection state after a card error or empty card.

◆ mnSnap_8025441C()

s32 mnSnap_8025441C ( u64  buttons)

Handles Yes/No dialog button inputs.

Sets snap->dlg_result to the selection result.

◆ fn_802545C4()

void fn_802545C4 ( void  )

Main per-frame update for the Snap menu.

Handles all state transitions including slot selection, photo browsing, copy/move/delete operations, and dialog confirmations via a large switch on snap->state.

◆ fn_80257D7C()

void fn_80257D7C ( void  )

Handles the Back button to exit the Snap menu and cleans up GObjs/text.

◆ mnSnap_80257F24()

void mnSnap_80257F24 ( void  )

Entry point: initializes the Snap menu scene.

Loads assets, creates GObjs, sets up thumbnail grid positions, SIS text labels, and dialog widgets.