Linux doesn't use NTFS compression.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2938 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-05-03 19:35:33 +00:00
parent 70d47bf240
commit 97e6d37e39
7 changed files with 25 additions and 14 deletions

View File

@ -41,7 +41,7 @@
static tIPU_DMA g_nDMATransfer(0);
static tIPU_cmd ipu_cmd;
static IPUStatus IPU1Status;
// FIXME - g_nIPU0Data and Pointer are not saved in the savestate, which breaks savestates for some
// FMVs at random (if they get saved during the half frame of a 30fps rate). The fix is complicated

View File

@ -65,8 +65,6 @@ struct IPUStatus {
u32 NextMem;
};
static IPUStatus IPU1Status;
#define DMA_MODE_NORMAL 0
#define DMA_MODE_CHAIN 1

View File

@ -354,7 +354,9 @@ AppConfig::AppConfig()
Toolbar_ImageSize = 24;
Toolbar_ShowLabels = true;
#ifdef __WXMSW__
McdCompressNTFS = true;
#endif
McdEnableEjection = true;
EnableSpeedHacks = false;
EnableGameFixes = false;
@ -440,7 +442,9 @@ void AppConfig::LoadSaveRootItems( IniInterface& ini )
IniEntry( EnableSpeedHacks );
IniEntry( EnableGameFixes );
#ifdef __WXMSW__
IniEntry( McdCompressNTFS );
#endif
IniEntry( McdEnableEjection );
ini.EnumEntry( L"CdvdSource", CdvdSource, CDVD_SourceLabels, defaults.CdvdSource );

View File

@ -205,10 +205,9 @@ public:
// Enables display of toolbar text labels.
bool Toolbar_ShowLabels;
#ifdef __WXMSW__
// uses automatic ntfs compression when creating new memory cards (Win32 only)
// (Used in several places, so it's easier
bool McdCompressNTFS;
#endif
// Force-ejects modified memory cards when loading savestates (avoids corruption)
bool McdEnableEjection;

View File

@ -589,7 +589,9 @@ void AppApplySettings( const AppConfig* oldconf )
// Update the compression attribute on the Memcards folder.
// Memcards generally compress very well via NTFS compression.
#ifdef __WXMSW__
NTFS_CompressFile( g_Conf->Folders.MemoryCards.ToString(), g_Conf->McdCompressNTFS );
#endif
sApp.DispatchEvent( AppStatus_SettingsApplied );
paused_core.AllowResume();

View File

@ -56,28 +56,34 @@ Panels::McdConfigPanel_Toggles::McdConfigPanel_Toggles(wxWindow *parent)
L"loading from savestates. May not be compatible with all games (Guitar Hero)."
)
);
*this += m_check_Ejection | pxExpand;
#ifdef __WXMSW__
m_check_CompressNTFS = new pxCheckBox( this,
_("Enable NTFS Compression on all cards by default."),
GetMsg_McdNtfsCompress()
);
);
*this += m_check_CompressNTFS | pxExpand;
#endif
*this += m_check_Ejection | pxExpand;
*this += m_check_CompressNTFS | pxExpand;
}
void Panels::McdConfigPanel_Toggles::Apply()
{
g_Conf->McdEnableEjection = m_check_Ejection->GetValue();
g_Conf->McdCompressNTFS = m_check_CompressNTFS->GetValue();
g_Conf->McdEnableEjection = m_check_Ejection->GetValue();
#ifdef __WXMSW__
g_Conf->McdCompressNTFS = m_check_CompressNTFS->GetValue();
#endif
}
void Panels::McdConfigPanel_Toggles::AppStatusEvent_OnSettingsApplied()
{
m_check_Ejection ->SetValue( g_Conf->McdEnableEjection );
m_check_CompressNTFS ->SetValue( g_Conf->McdCompressNTFS );
m_check_Ejection ->SetValue( g_Conf->McdEnableEjection );
#ifdef __WXMSW__
m_check_CompressNTFS ->SetValue( g_Conf->McdCompressNTFS );
#endif
}
Panels::McdConfigPanel_Standard::McdConfigPanel_Standard(wxWindow *parent) : _parent( parent )

View File

@ -102,7 +102,9 @@ FileMemoryCard::FileMemoryCard()
// [TODO] : Add memcard size detection and report it to the console log.
// (8MB, 256Mb, whatever)
#ifdef __WXMSW__
NTFS_CompressFile( str, g_Conf->McdCompressNTFS );
#endif
if( !m_file[port][slot].Open( str.c_str(), L"r+b" ) )
{