mirror of https://github.com/PCSX2/pcsx2.git
Memcard: Remove option to disable auto eject
This commit is contained in:
parent
158193a6c4
commit
05ed785af1
|
@ -55,7 +55,6 @@ MemoryCardSettingsWidget::MemoryCardSettingsWidget(SettingsWindow* dialog, QWidg
|
||||||
|
|
||||||
SettingWidgetBinder::BindWidgetToFolderSetting(sif, m_ui.directory, m_ui.browse, m_ui.open, m_ui.reset, "Folders",
|
SettingWidgetBinder::BindWidgetToFolderSetting(sif, m_ui.directory, m_ui.browse, m_ui.open, m_ui.reset, "Folders",
|
||||||
"MemoryCards", Path::Combine(EmuFolders::DataRoot, "memcards"));
|
"MemoryCards", Path::Combine(EmuFolders::DataRoot, "memcards"));
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.autoEject, "EmuCore", "McdEnableEjection", true);
|
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.automaticManagement, "EmuCore", "McdFolderAutoManage", true);
|
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.automaticManagement, "EmuCore", "McdFolderAutoManage", true);
|
||||||
|
|
||||||
setupAdditionalUi();
|
setupAdditionalUi();
|
||||||
|
@ -76,9 +75,6 @@ MemoryCardSettingsWidget::MemoryCardSettingsWidget(SettingsWindow* dialog, QWidg
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
dialog->registerWidgetHelp(m_ui.autoEject, tr("Auto-eject Memory Cards when loading save states"), tr("Checked"),
|
|
||||||
tr("Avoids broken Memory Card saves. May not work with some games such as Guitar Hero."));
|
|
||||||
|
|
||||||
dialog->registerWidgetHelp(m_ui.automaticManagement, tr("Automatically manage saves based on running game"),
|
dialog->registerWidgetHelp(m_ui.automaticManagement, tr("Automatically manage saves based on running game"),
|
||||||
tr("Checked"),
|
tr("Checked"),
|
||||||
tr("(Folder type only / Card size: Auto) Loads only the relevant booted game saves, ignoring others. Avoids "
|
tr("(Folder type only / Card size: Auto) Loads only the relevant booted game saves, ignoring others. Avoids "
|
||||||
|
|
|
@ -185,20 +185,13 @@
|
||||||
<string>Settings</string>
|
<string>Settings</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="1" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QCheckBox" name="automaticManagement">
|
<widget class="QCheckBox" name="automaticManagement">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Automatically manage saves based on running game</string>
|
<string>Automatically manage saves based on running game</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QCheckBox" name="autoEject">
|
|
||||||
<property name="text">
|
|
||||||
<string>Auto-eject Memory Cards when loading save states</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -1298,8 +1298,6 @@ struct Pcsx2Config
|
||||||
InhibitScreensaver : 1,
|
InhibitScreensaver : 1,
|
||||||
BackupSavestate : 1,
|
BackupSavestate : 1,
|
||||||
SavestateZstdCompression : 1,
|
SavestateZstdCompression : 1,
|
||||||
// enables simulated ejection of memory cards when loading savestates
|
|
||||||
McdEnableEjection : 1,
|
|
||||||
McdFolderAutoManage : 1,
|
McdFolderAutoManage : 1,
|
||||||
|
|
||||||
HostFs : 1,
|
HostFs : 1,
|
||||||
|
|
|
@ -3663,8 +3663,6 @@ void FullscreenUI::DrawMemoryCardSettingsPage()
|
||||||
DrawFolderSetting(bsi, FSUI_ICONSTR(ICON_FA_FOLDER_OPEN, "Memory Card Directory"), "Folders", "MemoryCards", EmuFolders::MemoryCards);
|
DrawFolderSetting(bsi, FSUI_ICONSTR(ICON_FA_FOLDER_OPEN, "Memory Card Directory"), "Folders", "MemoryCards", EmuFolders::MemoryCards);
|
||||||
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_SEARCH, "Folder Memory Card Filter"),
|
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_SEARCH, "Folder Memory Card Filter"),
|
||||||
FSUI_CSTR("Simulates a larger memory card by filtering saves only to the current game."), "EmuCore", "McdFolderAutoManage", true);
|
FSUI_CSTR("Simulates a larger memory card by filtering saves only to the current game."), "EmuCore", "McdFolderAutoManage", true);
|
||||||
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_MAGIC, "Auto Eject When Loading"),
|
|
||||||
FSUI_CSTR("Automatically ejects Memory Cards when they differ after loading a state."), "EmuCore", "McdEnableEjection", true);
|
|
||||||
|
|
||||||
for (u32 port = 0; port < NUM_MEMORY_CARD_PORTS; port++)
|
for (u32 port = 0; port < NUM_MEMORY_CARD_PORTS; port++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1478,7 +1478,6 @@ Pcsx2Config::Pcsx2Config()
|
||||||
{
|
{
|
||||||
bitset = 0;
|
bitset = 0;
|
||||||
// Set defaults for fresh installs / reset settings
|
// Set defaults for fresh installs / reset settings
|
||||||
McdEnableEjection = true;
|
|
||||||
McdFolderAutoManage = true;
|
McdFolderAutoManage = true;
|
||||||
EnablePatches = true;
|
EnablePatches = true;
|
||||||
EnableFastBoot = true;
|
EnableFastBoot = true;
|
||||||
|
@ -1537,7 +1536,6 @@ void Pcsx2Config::LoadSaveCore(SettingsWrapper& wrap)
|
||||||
|
|
||||||
SettingsWrapBitBool(BackupSavestate);
|
SettingsWrapBitBool(BackupSavestate);
|
||||||
SettingsWrapBitBool(SavestateZstdCompression);
|
SettingsWrapBitBool(SavestateZstdCompression);
|
||||||
SettingsWrapBitBool(McdEnableEjection);
|
|
||||||
SettingsWrapBitBool(McdFolderAutoManage);
|
SettingsWrapBitBool(McdFolderAutoManage);
|
||||||
|
|
||||||
SettingsWrapBitBool(WarnAboutUnsafeSettings);
|
SettingsWrapBitBool(WarnAboutUnsafeSettings);
|
||||||
|
|
|
@ -98,7 +98,7 @@ void AutoEject::CountDownTicks()
|
||||||
|
|
||||||
void AutoEject::Set(size_t port, size_t slot)
|
void AutoEject::Set(size_t port, size_t slot)
|
||||||
{
|
{
|
||||||
if (EmuConfig.McdEnableEjection && mcds[port][slot].autoEjectTicks == 0)
|
if (mcds[port][slot].autoEjectTicks == 0)
|
||||||
{
|
{
|
||||||
mcds[port][slot].autoEjectTicks = 1; // 1 second is enough.
|
mcds[port][slot].autoEjectTicks = 1; // 1 second is enough.
|
||||||
mcds[port][slot].term = 0x55; // Reset terminator to default (0x55), forces the PS2 to recheck the memcard.
|
mcds[port][slot].term = 0x55; // Reset terminator to default (0x55), forces the PS2 to recheck the memcard.
|
||||||
|
|
|
@ -2404,7 +2404,6 @@ void VMManager::CheckForMemoryCardConfigChanges(const Pcsx2Config& old_config)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
changed |= (EmuConfig.McdEnableEjection != old_config.McdEnableEjection);
|
|
||||||
changed |= (EmuConfig.McdFolderAutoManage != old_config.McdFolderAutoManage);
|
changed |= (EmuConfig.McdFolderAutoManage != old_config.McdFolderAutoManage);
|
||||||
|
|
||||||
if (!changed)
|
if (!changed)
|
||||||
|
|
Loading…
Reference in New Issue