small clean up

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1208 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-11-18 09:22:06 +00:00
parent db6f69c010
commit aa885ab14c
7 changed files with 10 additions and 12 deletions

View File

@ -468,7 +468,7 @@ void DecryptARCode(std::vector<std::string> vCodes, std::vector<AREntry> &ops)
buildseeds(); buildseeds();
u32 uCodes[1200]; u32 uCodes[1200];
int i,ret; u32 i,ret;
for(i = 0; i < vCodes.size(); ++i) for(i = 0; i < vCodes.size(); ++i)
{ {

View File

@ -161,7 +161,7 @@ bool RunActionReplayCode(const ARCode &arcode) {
u8 zcode; u8 zcode;
bool doFillNSlide = false; bool doFillNSlide = false;
bool doMemoryCopy = false; bool doMemoryCopy = false;
u32 addr_last; u32 addr_last = 0;
u32 val_last; u32 val_last;
code = arcode; code = arcode;

View File

@ -45,7 +45,6 @@ class AboutDolphin : public wxDialog
wxButton *m_Close; wxButton *m_Close;
wxStaticText *Message; wxStaticText *Message;
wxImage *iDolphinLogo;
wxBitmap *DolphinLogo; wxBitmap *DolphinLogo;
wxStaticBitmap *sbDolphinLogo; wxStaticBitmap *sbDolphinLogo;

View File

@ -54,15 +54,14 @@ private:
u64 m_VolumeSize; u64 m_VolumeSize;
DiscIO::IVolume::ECountry m_Country; DiscIO::IVolume::ECountry m_Country;
bool m_BlobCompressed;
u32 m_ImageSize;
u8* m_pImage;
#if !defined(OSX64) #if !defined(OSX64)
wxImage m_Image; wxImage m_Image;
#endif #endif
bool m_Valid; bool m_Valid;
bool m_BlobCompressed;
u8* m_pImage;
u32 m_ImageSize;
bool LoadFromCache(); bool LoadFromCache();
void SaveToCache(); void SaveToCache();

View File

@ -373,7 +373,7 @@ void CISOProperties::CreateGUIControls()
void CISOProperties::OnClose(wxCloseEvent& WXUNUSED (event)) void CISOProperties::OnClose(wxCloseEvent& WXUNUSED (event))
{ {
if (!SaveGameConfig(GameIniFile)) if (!SaveGameConfig())
wxMessageBox(wxString::Format(_("Could not save %s"), GameIniFile.c_str()), _("Error"), wxOK|wxICON_ERROR, this); wxMessageBox(wxString::Format(_("Could not save %s"), GameIniFile.c_str()), _("Error"), wxOK|wxICON_ERROR, this);
Destroy(); Destroy();
} }
@ -500,7 +500,7 @@ void CISOProperties::LoadGameConfig()
// Cheats->Append(wxString(arCodes[i].name.c_str(), wxConvUTF8)); // Cheats->Append(wxString(arCodes[i].name.c_str(), wxConvUTF8));
} }
bool CISOProperties::SaveGameConfig(std::string GameIniFile) bool CISOProperties::SaveGameConfig()
{ {
if (UseDualCore->Get3StateValue() == wxCHK_UNDETERMINED) if (UseDualCore->Get3StateValue() == wxCHK_UNDETERMINED)
GameIni.DeleteKey("Core", "UseDualCore"); GameIni.DeleteKey("Core", "UseDualCore");
@ -539,4 +539,4 @@ void CISOProperties::OnEditConfig(wxCommandEvent& WXUNUSED (event))
{ {
File::Launch(GameIniFile.c_str()); File::Launch(GameIniFile.c_str());
} }
} }

View File

@ -202,7 +202,7 @@ class CISOProperties : public wxDialog
IniFile GameIni; IniFile GameIni;
std::string GameIniFile; std::string GameIniFile;
void LoadGameConfig(); void LoadGameConfig();
bool SaveGameConfig(std::string GameIniFile); bool SaveGameConfig();
}; };
#endif #endif

View File

@ -129,7 +129,7 @@ void CPluginManager::ScanForPlugins(wxWindow* _wxWindow)
// ------------- // -------------
void CPluginManager::OpenConfig(void* _Parent, const char *_rFilename) void CPluginManager::OpenConfig(void* _Parent, const char *_rFilename)
{ {
int ret = Common::CPlugin::Load(_rFilename); Common::CPlugin::Load(_rFilename);
Common::CPlugin::Config((HWND)_Parent); Common::CPlugin::Config((HWND)_Parent);
Common::CPlugin::Release(); Common::CPlugin::Release();