mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: properly init structure with the { } pattern
Remove also 2 unused variables GCC warning is still disabled as it generates lots of false positive. GCC5 and later will improve the situation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
This commit is contained in:
parent
823670e4c5
commit
214253c579
|
@ -1167,7 +1167,18 @@ void SysCorePlugins::Load( const wxString (&folders)[PluginId_Count] )
|
|||
pcsx2_GetBoolean,
|
||||
pcsx2_GetString,
|
||||
pcsx2_GetStringAlloc,
|
||||
pcsx2_OSD_WriteLn
|
||||
pcsx2_OSD_WriteLn,
|
||||
|
||||
NULL, // AddMenuItem
|
||||
NULL, // Menu_Create
|
||||
NULL, // Menu_Delete
|
||||
NULL, // Menu_AddItem
|
||||
|
||||
{ 0 }, // MenuItem
|
||||
{ 0 }, // Console
|
||||
{ 0 }, // ConsoleW
|
||||
|
||||
{ 0,0,0,0,0,0,0,0 },
|
||||
};
|
||||
|
||||
m_mcdPlugin = FileMcd_InitAPI( &myself );
|
||||
|
|
|
@ -100,8 +100,6 @@ struct GlobalCommandDescriptor
|
|||
const wxChar* Tooltip; // text displayed in toolbar tooltips and menu status bars.
|
||||
|
||||
bool AlsoApplyToGui; // Indicates that the GUI should be updated if possible.
|
||||
|
||||
int ToolbarIconId; // not implemented yet, leave 0 for now.
|
||||
};
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
|
|
|
@ -25,7 +25,6 @@ struct GenericListViewColumn
|
|||
{
|
||||
const wchar_t *name;
|
||||
float size;
|
||||
int flags;
|
||||
};
|
||||
|
||||
class GenericListView: public wxListView
|
||||
|
|
|
@ -476,48 +476,56 @@ static const GlobalCommandDescriptor CommandDeclarations[] =
|
|||
States_FreezeCurrentSlot,
|
||||
pxL( "Save state" ),
|
||||
pxL( "Saves the virtual machine state to the current slot." ),
|
||||
false,
|
||||
},
|
||||
|
||||
{ "States_DefrostCurrentSlot",
|
||||
States_DefrostCurrentSlot,
|
||||
pxL( "Load state" ),
|
||||
pxL( "Loads a virtual machine state from the current slot." ),
|
||||
false,
|
||||
},
|
||||
|
||||
{ "States_DefrostCurrentSlotBackup",
|
||||
States_DefrostCurrentSlotBackup,
|
||||
pxL( "Load State Backup" ),
|
||||
pxL( "Loads virtual machine state backup for current slot." ),
|
||||
false,
|
||||
},
|
||||
|
||||
{ "States_CycleSlotForward",
|
||||
States_CycleSlotForward,
|
||||
pxL( "Cycle to next slot" ),
|
||||
pxL( "Cycles the current save slot in +1 fashion!" ),
|
||||
false,
|
||||
},
|
||||
|
||||
{ "States_CycleSlotBackward",
|
||||
States_CycleSlotBackward,
|
||||
pxL( "Cycle to prev slot" ),
|
||||
pxL( "Cycles the current save slot in -1 fashion!" ),
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Frameskip_Toggle",
|
||||
Implementations::Frameskip_Toggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Framelimiter_TurboToggle",
|
||||
Implementations::Framelimiter_TurboToggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Framelimiter_SlomoToggle",
|
||||
Implementations::Framelimiter_SlomoToggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Framelimiter_MasterToggle",
|
||||
|
@ -538,69 +546,79 @@ static const GlobalCommandDescriptor CommandDeclarations[] =
|
|||
Implementations::GSwindow_ZoomIn,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "GSwindow_ZoomOut",
|
||||
Implementations::GSwindow_ZoomOut,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "GSwindow_ZoomToggle",
|
||||
Implementations::GSwindow_ZoomToggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "GSwindow_ZoomInY", Implementations::GSwindow_ZoomInY, NULL, NULL, },
|
||||
{ "GSwindow_ZoomOutY", Implementations::GSwindow_ZoomOutY, NULL, NULL, },
|
||||
{ "GSwindow_ZoomResetY", Implementations::GSwindow_ZoomResetY, NULL, NULL, },
|
||||
{ "GSwindow_ZoomInY" , Implementations::GSwindow_ZoomInY , NULL, NULL, false},
|
||||
{ "GSwindow_ZoomOutY" , Implementations::GSwindow_ZoomOutY , NULL, NULL, false},
|
||||
{ "GSwindow_ZoomResetY" , Implementations::GSwindow_ZoomResetY , NULL, NULL, false},
|
||||
|
||||
{ "GSwindow_OffsetYminus", Implementations::GSwindow_OffsetYminus, NULL, NULL, },
|
||||
{ "GSwindow_OffsetYplus", Implementations::GSwindow_OffsetYplus, NULL, NULL, },
|
||||
{ "GSwindow_OffsetXminus", Implementations::GSwindow_OffsetXminus, NULL, NULL, },
|
||||
{ "GSwindow_OffsetXplus", Implementations::GSwindow_OffsetXplus, NULL, NULL, },
|
||||
{ "GSwindow_OffsetReset", Implementations::GSwindow_OffsetReset, NULL, NULL, },
|
||||
{ "GSwindow_OffsetYminus", Implementations::GSwindow_OffsetYminus, NULL, NULL, false},
|
||||
{ "GSwindow_OffsetYplus" , Implementations::GSwindow_OffsetYplus , NULL, NULL, false},
|
||||
{ "GSwindow_OffsetXminus", Implementations::GSwindow_OffsetXminus, NULL, NULL, false},
|
||||
{ "GSwindow_OffsetXplus" , Implementations::GSwindow_OffsetXplus , NULL, NULL, false},
|
||||
{ "GSwindow_OffsetReset" , Implementations::GSwindow_OffsetReset , NULL, NULL, false},
|
||||
|
||||
{ "Sys_SuspendResume",
|
||||
Implementations::Sys_SuspendResume,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Sys_TakeSnapshot",
|
||||
Implementations::Sys_TakeSnapshot,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Sys_RenderswitchToggle",
|
||||
Implementations::Sys_RenderToggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Sys_LoggingToggle",
|
||||
Implementations::Sys_LoggingToggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "Sys_FreezeGS",
|
||||
Implementations::Sys_FreezeGS,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
{ "Sys_RecordingToggle",
|
||||
Implementations::Sys_RecordingToggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
{ "FullscreenToggle",
|
||||
Implementations::FullscreenToggle,
|
||||
NULL,
|
||||
NULL,
|
||||
false,
|
||||
},
|
||||
|
||||
// Command Declarations terminator:
|
||||
|
|
Loading…
Reference in New Issue