mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
GameCube SRAM: Add a struct for the "flags" parameter.
This commit is contained in:
@ -38,6 +38,20 @@ distribution.
|
|||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
#pragma pack(push,1)
|
#pragma pack(push,1)
|
||||||
|
union SRAMFlags
|
||||||
|
{
|
||||||
|
u8 Hex;
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
u8 : 2;
|
||||||
|
u8 sound : 1; // Audio settings; 0 = Mono, 1 = Stereo
|
||||||
|
u8 initialized : 1; // if 0, displays prompt to set language on boot and asks user to set options and time/date
|
||||||
|
u8 : 2;
|
||||||
|
u8 boot_menu : 1; // if 1, skips logo animation and boots into the system menu regardless of if there is a disc inserted
|
||||||
|
u8 progressive : 1; // if 1, automatically displays Progressive Scan prompt in games that support it
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
union SRAM
|
union SRAM
|
||||||
{
|
{
|
||||||
u8 p_SRAM[64];
|
u8 p_SRAM[64];
|
||||||
@ -51,7 +65,7 @@ union SRAM
|
|||||||
s8 display_offsetH; // Pixel offset for the VI
|
s8 display_offsetH; // Pixel offset for the VI
|
||||||
u8 ntd; // Unknown attribute
|
u8 ntd; // Unknown attribute
|
||||||
u8 lang; // Language of system
|
u8 lang; // Language of system
|
||||||
u8 flags; // Device and operations flag
|
SRAMFlags flags; // Device and operations flag
|
||||||
|
|
||||||
// Stored configuration value from the extended SRAM area
|
// Stored configuration value from the extended SRAM area
|
||||||
u8 flash_id[2][12]; // flash_id[2][12] 96bit memorycard unlock flash ID
|
u8 flash_id[2][12]; // flash_id[2][12] 96bit memorycard unlock flash ID
|
||||||
|
Reference in New Issue
Block a user