mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Fix uninitialized variable warnings (C26495)
This commit is contained in:
@ -43,7 +43,7 @@ struct ContentFile
|
||||
std::string m_filename;
|
||||
|
||||
// Offset from the start of the file where the first byte of this content chunk is.
|
||||
u64 m_offset;
|
||||
u64 m_offset = 0;
|
||||
};
|
||||
|
||||
// Content chunk that loads data from a DirectoryBlobReader.
|
||||
@ -54,20 +54,20 @@ struct ContentPartition
|
||||
DirectoryBlobReader* m_reader;
|
||||
|
||||
// Offset from the start of the partition for the first byte represented by this chunk.
|
||||
u64 m_offset;
|
||||
u64 m_offset = 0;
|
||||
|
||||
// The value passed as partition_data_offset to EncryptPartitionData().
|
||||
u64 m_partition_data_offset;
|
||||
u64 m_partition_data_offset = 0;
|
||||
};
|
||||
|
||||
// Content chunk that loads data from a Volume.
|
||||
struct ContentVolume
|
||||
{
|
||||
// Offset from the start of the volume for the first byte represented by this chunk.
|
||||
u64 m_offset;
|
||||
u64 m_offset = 0;
|
||||
|
||||
// The volume to read data from.
|
||||
const Volume* m_volume;
|
||||
const Volume* m_volume = nullptr;
|
||||
|
||||
// The partition passed to the Volume's Read() method.
|
||||
Partition m_partition;
|
||||
@ -77,7 +77,7 @@ struct ContentVolume
|
||||
// Useful for padding between chunks within a file.
|
||||
struct ContentFixedByte
|
||||
{
|
||||
u8 m_byte;
|
||||
u8 m_byte = 0;
|
||||
};
|
||||
|
||||
// Content chunk representing an arbitrary byte sequence that's stored within the struct itself.
|
||||
@ -96,15 +96,15 @@ using ContentSource = std::variant<ContentFile, // File
|
||||
|
||||
struct BuilderContentSource
|
||||
{
|
||||
u64 m_offset;
|
||||
u64 m_size;
|
||||
u64 m_offset = 0;
|
||||
u64 m_size = 0;
|
||||
ContentSource m_source;
|
||||
};
|
||||
|
||||
struct FSTBuilderNode
|
||||
{
|
||||
std::string m_filename;
|
||||
u64 m_size;
|
||||
u64 m_size = 0;
|
||||
std::variant<std::vector<BuilderContentSource>, std::vector<FSTBuilderNode>> m_content;
|
||||
void* m_user_data = nullptr;
|
||||
|
||||
|
@ -54,7 +54,7 @@ struct Option
|
||||
|
||||
// The currently selected patch choice in the m_choices vector.
|
||||
// Note that this index is 1-based; 0 means no choice is selected and this Option is disabled.
|
||||
u32 m_selected_choice;
|
||||
u32 m_selected_choice = 0;
|
||||
};
|
||||
|
||||
// A single page of options presented to the user in the Riivolution GUI.
|
||||
@ -177,7 +177,7 @@ struct Patch
|
||||
struct Disc
|
||||
{
|
||||
// Riivolution version. Only '1' exists at time of writing.
|
||||
int m_version;
|
||||
int m_version = 0;
|
||||
|
||||
// Info about which game and revision these patches are for.
|
||||
GameFilter m_game_filter;
|
||||
@ -209,7 +209,7 @@ struct ConfigOption
|
||||
std::string m_id;
|
||||
|
||||
// The selected Choice index.
|
||||
u32 m_default;
|
||||
u32 m_default = 0;
|
||||
};
|
||||
|
||||
struct Config
|
||||
|
Reference in New Issue
Block a user