Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > d5fa1af744e8d6b92d39a53c451d5222 > files > 1

wxosmose-0.0.6-1plf2008.0.src.rpm

diff -NarU3 wxosmose-0.0.6.orig/configuration/configuration.cpp wxosmose-0.0.6/configuration/configuration.cpp
--- wxosmose-0.0.6.orig/configuration/configuration.cpp	2005-06-02 22:27:16.000000000 +0200
+++ wxosmose-0.0.6/configuration/configuration.cpp	2007-08-15 14:11:47.000000000 +0200
@@ -392,7 +392,10 @@
 		
 	/* Ini File creation and writing */
 	wxTextFile FirstIniFile;
-	FirstIniFile.Open(IniFilename);
+	if ( ! FirstIniFile.Open(IniFilename) )
+	{
+		FirstIniFile.Create(IniFilename);
+	};
 	if ( FirstIniFile.IsOpened() )
 	{
 		FirstIniFile.Clear();
diff -NarU3 wxosmose-0.0.6.orig/gui/myframe.cpp wxosmose-0.0.6/gui/myframe.cpp
--- wxosmose-0.0.6.orig/gui/myframe.cpp	2005-06-02 22:49:14.000000000 +0200
+++ wxosmose-0.0.6/gui/myframe.cpp	2007-08-15 14:20:11.000000000 +0200
@@ -410,7 +410,7 @@
 		Command = _T("./osmose");
 	}
 	
-	wxFileDialog RomDialog(this, _T("Choose the ROM to open"), Config.GetLastOpenedDirectory(), _T(""), _T("ZIP files with SMS file within (*.zip)|*.zip|SMS files (*.sms)|*.sms"), wxOPEN | wxHIDE_READONLY );
+	wxFileDialog RomDialog(this, _T("Choose the ROM to open"), Config.GetLastOpenedDirectory(), _T(""), _T("ZIP files with SMS file within (*.zip)|*.zip|SMS files (*.sms)|*.sms"), wxFD_OPEN );
 	
 	if ( RomDialog.ShowModal() == wxID_OK )
 	{
@@ -538,7 +538,7 @@
 
 void MyFrame::OnChangeExecutablePath(wxCommandEvent& WXUNUSED(event))
 {
-	wxFileDialog ExecDialog(this, _T("Choose where the Osmose Executable is."), _T(""), _T(""), _T("Executable files (*)|*"), wxOPEN | wxHIDE_READONLY );
+	wxFileDialog ExecDialog(this, _T("Choose where the Osmose Executable is."), _T(""), _T(""), _T("Executable files (*)|*"), wxFD_OPEN );
 	
 	if ( ExecDialog.ShowModal() == wxID_OK )
 	{
@@ -651,7 +651,7 @@
 		MD5Sum MD5SumOfFile;
 		
 		// We load the known sms list.
-		RomsList SmsList(_T("datas/MasterSystem/roms.list"));
+		RomsList SmsList(_T("/usr/share/games/wxosmose/datas/MasterSystem/roms.list"));
 		
 		// A backend to get all the files in a alphabetical sorted way.
 		wxArrayString SortedFoundSmsFiles;