|
SSBM Decomp
|
#include "mnsnap.h"#include <placeholder.h>#include "baselib/debug.h"#include <baselib/aobj.h>#include <baselib/dobj.h>#include <baselib/gobjobject.h>#include <baselib/jobj.h>#include <baselib/mobj.h>#include <baselib/sislib.h>#include <sysdolphin/baselib/gobjgxlink.h>#include <sysdolphin/baselib/gobjplink.h>#include <sysdolphin/baselib/gobjproc.h>#include <melee/lb/lb_00B0.h>#include <melee/lb/lbarchive.h>#include <melee/lb/lbaudio_ax.h>#include <melee/lb/lbcardgame.h>#include <melee/lb/lbcardnew.h>#include <melee/lb/lblanguage.h>#include <melee/lb/lbsnap.h>#include <melee/mn/inlines.h>#include <melee/mn/mnmain.h>Data Structures | |
| struct | mnSnap_State |
Functions | |
| void | mnSnap_80254298 (void) |
| Resets to slot selection state after a card error or empty card. | |
| void | mnSnap_80253184 (void) |
| Recursively loads snapshot thumbnails from memory card. | |
| static void | mnSnap_8025329C (void) |
| 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. | |
| 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. | |
Variables | |
| static mnSnap_State | mnSnap_804A0A10 |
| static void * | mnSnap_thumb_imgs [4] |
| void mnSnap_80254298 | ( | void | ) |
Resets to slot selection state after a card error or empty card.
| void mnSnap_80253184 | ( | void | ) |
Recursively loads snapshot thumbnails from memory card.
|
static |
| 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.
Processes D-pad/trigger inputs to navigate a 2D grid of snapshots.
Renders the main content GObj only when in photo-browsing states (>= 4).
Renders the arrow/slot selector GObj only during slot selection (state 2).
Renders the cursor GObj during menu (state 6) or full-screen view (10-11).
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.
Pointer arithmetic required to match: walk[0x94] reads card_status[i], and (snap + byte_off + 0x98) accesses slot_a_jobj / slot_b_jobj.
| 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.
| s32 mnSnap_8025441C | ( | u64 | buttons | ) |
Handles Yes/No dialog button inputs.
Sets snap->dlg_result to the selection result.
| 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.
| 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.
Loads assets, creates GObjs, sets up thumbnail grid positions, SIS text labels, and dialog widgets.
|
static |
|
static |