mirror of https://github.com/PCSX2/pcsx2.git
Config: Remove Pcsx2Config::CopyConfig()
Was only needed for wx.
This commit is contained in:
parent
b8596c6f2a
commit
42eb289d97
|
@ -1264,10 +1264,6 @@ struct Pcsx2Config
|
|||
return !this->operator==(right);
|
||||
}
|
||||
|
||||
// You shouldn't assign to this class, because it'll mess with the runtime variables (Current...).
|
||||
// But you can still use this to copy config. Only needed until we drop wx.
|
||||
void CopyConfig(const Pcsx2Config& cfg);
|
||||
|
||||
/// Copies runtime configuration settings (e.g. frame limiter state).
|
||||
void CopyRuntimeConfig(Pcsx2Config& cfg);
|
||||
};
|
||||
|
|
|
@ -1328,54 +1328,6 @@ bool Pcsx2Config::operator==(const Pcsx2Config& right) const
|
|||
return equal;
|
||||
}
|
||||
|
||||
void Pcsx2Config::CopyConfig(const Pcsx2Config& cfg)
|
||||
{
|
||||
Cpu = cfg.Cpu;
|
||||
GS = cfg.GS;
|
||||
DEV9 = cfg.DEV9;
|
||||
Speedhacks = cfg.Speedhacks;
|
||||
Gamefixes = cfg.Gamefixes;
|
||||
Profiler = cfg.Profiler;
|
||||
Debugger = cfg.Debugger;
|
||||
Trace = cfg.Trace;
|
||||
BaseFilenames = cfg.BaseFilenames;
|
||||
Framerate = cfg.Framerate;
|
||||
|
||||
for (u32 i = 0; i < sizeof(Mcd) / sizeof(Mcd[0]); i++)
|
||||
{
|
||||
// Type will be File here, even if it's a folder, so we preserve the old value.
|
||||
// When the memory card is re-opened, it should redetect anyway.
|
||||
Mcd[i].Enabled = cfg.Mcd[i].Enabled;
|
||||
Mcd[i].Filename = cfg.Mcd[i].Filename;
|
||||
}
|
||||
|
||||
GzipIsoIndexTemplate = cfg.GzipIsoIndexTemplate;
|
||||
|
||||
CdvdVerboseReads = cfg.CdvdVerboseReads;
|
||||
CdvdDumpBlocks = cfg.CdvdDumpBlocks;
|
||||
CdvdShareWrite = cfg.CdvdShareWrite;
|
||||
EnablePatches = cfg.EnablePatches;
|
||||
EnableCheats = cfg.EnableCheats;
|
||||
EnablePINE = cfg.EnablePINE;
|
||||
EnableWideScreenPatches = cfg.EnableWideScreenPatches;
|
||||
EnableNoInterlacingPatches = cfg.EnableNoInterlacingPatches;
|
||||
EnableRecordingTools = cfg.EnableRecordingTools;
|
||||
UseBOOT2Injection = cfg.UseBOOT2Injection;
|
||||
BackupSavestate = cfg.BackupSavestate;
|
||||
SavestateZstdCompression = cfg.SavestateZstdCompression;
|
||||
McdEnableEjection = cfg.McdEnableEjection;
|
||||
McdFolderAutoManage = cfg.McdFolderAutoManage;
|
||||
MultitapPort0_Enabled = cfg.MultitapPort0_Enabled;
|
||||
MultitapPort1_Enabled = cfg.MultitapPort1_Enabled;
|
||||
ConsoleToStdio = cfg.ConsoleToStdio;
|
||||
HostFs = cfg.HostFs;
|
||||
#ifdef _WIN32
|
||||
McdCompressNTFS = cfg.McdCompressNTFS;
|
||||
#endif
|
||||
|
||||
LimiterMode = cfg.LimiterMode;
|
||||
}
|
||||
|
||||
void Pcsx2Config::CopyRuntimeConfig(Pcsx2Config& cfg)
|
||||
{
|
||||
GS.LimitScalar = cfg.GS.LimitScalar;
|
||||
|
|
Loading…
Reference in New Issue