MemoryCardFile: Don't compress file on opening

This commit is contained in:
Stenzek 2024-01-23 22:45:58 +10:00 committed by Connor McLaughlin
parent 5684bcb6f4
commit 4f0d944bb9
3 changed files with 0 additions and 18 deletions

View File

@ -1146,11 +1146,6 @@ struct Pcsx2Config
HostFs : 1,
WarnAboutUnsafeSettings : 1;
// uses automatic ntfs compression when creating new memory cards (Win32 only)
#ifdef _WIN32
bool McdCompressNTFS;
#endif
BITFIELD_END
CpuOptions Cpu;

View File

@ -1697,11 +1697,6 @@ Pcsx2Config::Pcsx2Config()
InhibitScreensaver = true;
BackupSavestate = true;
SavestateZstdCompression = true;
#ifdef _WIN32
McdCompressNTFS = true;
#endif
WarnAboutUnsafeSettings = true;
// To be moved to FileMemoryCard pluign (someday)
@ -1770,10 +1765,6 @@ void Pcsx2Config::LoadSaveCore(SettingsWrapper& wrap)
EmulationSpeed.LoadSave(wrap);
LoadSaveMemcards(wrap);
#ifdef _WIN32
SettingsWrapEntry(McdCompressNTFS);
#endif
if (wrap.IsLoading())
{
CurrentAspectRatio = GS.AspectRatio;

View File

@ -305,10 +305,6 @@ void FileMemoryCard::Open()
// [TODO] : Add memcard size detection and report it to the console log.
// (8MB, 256Mb, formatted, unformatted, etc ...)
#ifdef _WIN32
FileSystem::SetPathCompression(fname.c_str(), EmuConfig.McdCompressNTFS);
#endif
if (fname.ends_with(".bin"))
{
std::string newname(fname + "x");