A few minor changes.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@646 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-03-01 11:38:05 +00:00
parent abbaa90a7d
commit 9deff96c78
8 changed files with 38 additions and 43 deletions

View File

@ -17,9 +17,6 @@ export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --enable-devbuild --prefix `pwd
#Optimized, but a devbuild - with memcpy_fast_ enabled. - BROKEN! #Optimized, but a devbuild - with memcpy_fast_ enabled. - BROKEN!
#export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --enable-devbuild --enable-memcpyfast --prefix `pwd`" #export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --enable-devbuild --enable-memcpyfast --prefix `pwd`"
#Optimized, but a devbuild - with microVU enabled. - NOT FULLY IMPLEMENTED!!
#export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --enable-devbuild --enable-microVU --prefix `pwd`"
#ZeroGS Normal mode #ZeroGS Normal mode
export ZEROGSOPTIONS="--enable-sse2" export ZEROGSOPTIONS="--enable-sse2"

View File

@ -51,17 +51,13 @@ static void ConfPlugin(PluginConf confs, char* plugin, const char* name)
{ {
void *drv; void *drv;
void (*conf)(); void (*conf)();
char file[g_MaxPath], file2[g_MaxPath];
GetComboText(confs.Combo, confs.plist, plugin); GetComboText(confs.Combo, confs.plist, plugin);
strcpy(file, Config.PluginsDir); drv = SysLoadLibrary( Path::Combine( Config.PluginsDir, plugin ).c_str() );
strcat(file, plugin); if (drv == NULL) return;
drv = SysLoadLibrary(file);
//#ifndef LOCAL_PLUGIN_INIS //#ifndef LOCAL_PLUGIN_INIS
// chdir(Config.PluginsDir); /* change dirs so that plugins can find their config file*/ // chdir(Config.PluginsDir); /* change dirs so that plugins can find their config file*/
//#endif //#endif
if (drv == NULL) return;
conf = (void (*)()) SysLoadSym(drv, name); conf = (void (*)()) SysLoadSym(drv, name);
if (SysLibError() == NULL) conf(); if (SysLibError() == NULL) conf();
@ -76,14 +72,11 @@ static void TestPlugin(PluginConf confs, char* plugin, const char* name)
{ {
void *drv; void *drv;
s32(* (*conf)())(); s32(* (*conf)())();
char file[g_MaxPath];
int ret = 0; int ret = 0;
GetComboText(confs.Combo, confs.plist, plugin); GetComboText(confs.Combo, confs.plist, plugin);
strcpy(file, Config.PluginsDir); if (plugin == NULL) return;
strcat(file, plugin); drv = SysLoadLibrary( Path::Combine( Config.PluginsDir, plugin ).c_str() );
drv = SysLoadLibrary(file);
if (drv == NULL) return; if (drv == NULL) return;
conf = (s32(* (*)())()) SysLoadSym(drv, name); conf = (s32(* (*)())()) SysLoadSym(drv, name);
@ -206,12 +199,8 @@ void OnConfConf_Ok(GtkButton *button, gpointer user_data)
applychanges = FALSE; applychanges = FALSE;
SaveConfig(); SaveConfig();
SysRestorableReset();
if (configuringplug == FALSE)
{
ReleasePlugins(); ReleasePlugins();
LoadPlugins();
}
gtk_widget_destroy(ConfDlg); gtk_widget_destroy(ConfDlg);
if (MainWindow) gtk_widget_set_sensitive(MainWindow, TRUE); if (MainWindow) gtk_widget_set_sensitive(MainWindow, TRUE);

View File

@ -72,6 +72,5 @@ static void ConfPlugin(PluginConf confs, char* plugin, const char* name);
static void TestPlugin(PluginConf confs, char* plugin, const char* name); static void TestPlugin(PluginConf confs, char* plugin, const char* name);
extern void CheckSlots(); extern void CheckSlots();
extern bool configuringplug;
#endif // __CONFIGDLG_H__ #endif // __CONFIGDLG_H__

View File

@ -23,7 +23,6 @@ using namespace R5900;
DIR *dir; DIR *dir;
GtkWidget *FileSel; GtkWidget *FileSel;
GtkWidget *MsgDlg; GtkWidget *MsgDlg;
bool configuringplug = FALSE;
const char* g_pRunGSState = NULL; const char* g_pRunGSState = NULL;
int efile = 0; int efile = 0;
@ -295,10 +294,8 @@ int Pcsx2Configure()
{ {
if (!UseGui) return 0; if (!UseGui) return 0;
configuringplug = TRUE;
MainWindow = NULL; MainWindow = NULL;
OnConf_Conf(NULL, 0); OnConf_Conf(NULL, 0);
configuringplug = FALSE;
return applychanges; return applychanges;
} }
@ -314,8 +311,7 @@ void OnLanguage(GtkMenuItem *menuitem, gpointer user_data)
void OnFile_RunCD(GtkMenuItem *menuitem, gpointer user_data) void OnFile_RunCD(GtkMenuItem *menuitem, gpointer user_data)
{ {
safe_free(g_RecoveryState); SysReset();
ResetPlugins();
RunExecute(NULL); RunExecute(NULL);
} }

View File

@ -340,7 +340,6 @@ void RunExecute(const char* elf_file, bool use_bios)
ClosePlugins( true ); ClosePlugins( true );
return; return;
} }
safe_delete(g_RecoveryState);
} }
else if( g_gsRecoveryState == NULL ) else if( g_gsRecoveryState == NULL )
{ {
@ -476,8 +475,7 @@ void States_Load(const string& file, int num = -1)
else else
sprintf (Text, _("*PCSX2*: Loaded State %s"), file.c_str()); sprintf (Text, _("*PCSX2*: Loaded State %s"), file.c_str());
//StatusBar_Notice( Text ); StatusBar_Notice( Text );
Console::Notice(Text);
if( GSsetGameCRC != NULL ) GSsetGameCRC(ElfCRC, g_ZeroGSOptions); if( GSsetGameCRC != NULL ) GSsetGameCRC(ElfCRC, g_ZeroGSOptions);
} }
@ -536,7 +534,7 @@ void States_Save( const string& file, int num = -1 )
else else
ssprintf( text, _( "State saved to file: %s" ), file.c_str() ); ssprintf( text, _( "State saved to file: %s" ), file.c_str() );
Console::Notice(text.c_str()); StatusBar_Notice( text );
} }
catch( Exception::BaseException& ex ) catch( Exception::BaseException& ex )
{ {
@ -856,6 +854,9 @@ void SysReset()
{ {
if (!sinit) return; if (!sinit) return;
StatusBar_Notice(_("Resetting..."));
//Console::SetTitle(_("Resetting..."));
g_EmulationInProgress = false; g_EmulationInProgress = false;
safe_delete( g_RecoveryState ); safe_delete( g_RecoveryState );
safe_delete( g_gsRecoveryState ); safe_delete( g_gsRecoveryState );
@ -865,6 +866,9 @@ void SysReset()
// Note : No need to call cpuReset() here. It gets called automatically before the // Note : No need to call cpuReset() here. It gets called automatically before the
// emulator resumes execution. // emulator resumes execution.
StatusBar_Notice(_("Ready"));
//Console::SetTitle(_("*PCSX2* Emulation state is reset."));
} }
bool SysInit() bool SysInit()
@ -908,7 +912,7 @@ bool SysInit()
void SysClose() void SysClose()
{ {
if (sinit == 0) return; if (sinit == false) return;
cpuShutdown(); cpuShutdown();
ClosePlugins( true ); ClosePlugins( true );
ReleasePlugins(); ReleasePlugins();
@ -918,7 +922,7 @@ void SysClose()
fclose(emuLog); fclose(emuLog);
emuLog = NULL; emuLog = NULL;
} }
sinit = 0; sinit = false;
} }
void *SysLoadLibrary(const char *lib) void *SysLoadLibrary(const char *lib)

View File

@ -211,8 +211,14 @@ void SetCPUState(u32 sseMXCSR, u32 sseVUMXCSR);
// when using mmx/xmm regs, use; 0 is load // when using mmx/xmm regs, use; 0 is load
// freezes no matter the state // freezes no matter the state
#ifndef __INTEL_COMPILER
extern "C" void FreezeXMMRegs_(int save); extern "C" void FreezeXMMRegs_(int save);
extern "C" void FreezeMMXRegs_(int save); extern "C" void FreezeMMXRegs_(int save);
#else
extern void FreezeXMMRegs_(int save);
extern void FreezeMMXRegs_(int save);
#endif
extern bool g_EEFreezeRegs; extern bool g_EEFreezeRegs;
extern u8 g_globalMMXSaved; extern u8 g_globalMMXSaved;
extern u8 g_globalXMMSaved; extern u8 g_globalXMMSaved;

View File

@ -72,14 +72,14 @@ then
fi fi
AC_MSG_RESULT($memcpyfast) AC_MSG_RESULT($memcpyfast)
AC_MSG_CHECKING(turn on microVU) #AC_MSG_CHECKING(turn on microVU)
AC_ARG_ENABLE(microVU, AC_HELP_STRING([--enable-microVU], [Turns on the currently incomplete microVU files - Not a good idea]), #AC_ARG_ENABLE(microVU, AC_HELP_STRING([--enable-microVU], [Turns on the currently incomplete microVU files - Not a good idea]),
microVU=$enableval,microVU=no) # microVU=$enableval,microVU=no)
if test "x$microVU" == xyes #if test "x$microVU" == xyes
then #then
AC_DEFINE(PCSX2_MICROVU,1,[PCSX2_MICROVU]) # AC_DEFINE(PCSX2_MICROVU,1,[PCSX2_MICROVU])
fi #fi
AC_MSG_RESULT($microVU) #AC_MSG_RESULT($microVU)
dnl Check for dev build dnl Check for dev build
AC_MSG_CHECKING(for development build) AC_MSG_CHECKING(for development build)
@ -157,4 +157,4 @@ echo " nls support? $nls"
echo " local plugin inis? $localinis" echo " local plugin inis? $localinis"
echo " custom cflags? $customcflags" echo " custom cflags? $customcflags"
echo " memcpy_fast? $memcpyfast" echo " memcpy_fast? $memcpyfast"
echo " microVU? $microVU" #echo " microVU? $microVU"

View File

@ -68,8 +68,10 @@ void SetCPUState(u32 sseMXCSR, u32 sseVUMXCSR)
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
// //
#ifndef __INTEL_COMPILER
extern "C" extern "C"
{ {
#endif
__forceinline void FreezeMMXRegs_(int save) __forceinline void FreezeMMXRegs_(int save)
{ {
assert( g_EEFreezeRegs ); assert( g_EEFreezeRegs );
@ -226,4 +228,6 @@ __forceinline void FreezeXMMRegs_(int save)
#endif // _MSC_VER #endif // _MSC_VER
} }
} }
#ifndef __INTEL_COMPILER
} }
#endif