Large blob code cleanup. Compressed ISO ("gcz") support reactivated. Beginnings of raw drive reading code. Deprecate file mapping in an ugly way.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@566 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-09-17 23:25:35 +00:00
parent 2cd7acfaee
commit cb90e61368
31 changed files with 1209 additions and 844 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8,00"
Version="8.00"
Name="DolphinWX"
ProjectGUID="{A72606EF-C5C1-4954-90AD-F0F93A8D97D9}"
RootNamespace="DolphinWX"
@ -95,6 +95,8 @@
AdditionalLibraryDirectories="..\..\..\Externals\wxWidgets\lib;..\..\..\Externals\LZO\win32\$(ConfigurationName)"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"
GenerateMapFile="true"
MapFileName="$(TargetDir)linkermap.map"
SubSystem="2"
BaseAddress="0x00400000"
TargetMachine="1"

View File

@ -368,9 +368,9 @@ void CGameListCtrl::ScanForISOs()
CISOFile ISOFile(rFilenames[i]);
if (ISOFile.IsValid())
{
m_ISOFiles.push_back(ISOFile);
}
else
PanicAlert("Invalid ISO file %s", rFilenames[i].c_str());
}
}
std::sort(m_ISOFiles.begin(), m_ISOFiles.end());
@ -475,11 +475,10 @@ void CGameListCtrl::OnRightClick(wxMouseEvent& event)
//popupMenu.Append(IDM_FILESYSTEMVIEWER, wxString::FromAscii("Open in ISO viewer/dumper"));
// F|RES: compression doesn't work and will be rewritten ... if it is fixed the gui is ready :D
/*if (selected_iso->IsCompressed())
if (selected_iso->IsCompressed())
popupMenu.Append(IDM_COMPRESSGCM, wxString::FromAscii("Decompress ISO... (UNTESTED)"));
else
popupMenu.Append(IDM_COMPRESSGCM, wxString::FromAscii("Compress ISO... (UNTESTED)"));
*/
PopupMenu(&popupMenu);
}
@ -552,7 +551,7 @@ void CGameListCtrl::OnCompressGCM(wxCommandEvent& WXUNUSED (event)) {
if (iso->IsCompressed())
{
path = wxFileSelector(
_T("Select the file to save"),
_T("Save decompressed ISO"),
wxEmptyString, wxEmptyString, wxEmptyString,
wxString::Format
(
@ -571,7 +570,7 @@ void CGameListCtrl::OnCompressGCM(wxCommandEvent& WXUNUSED (event)) {
else
{
path = wxFileSelector(
_T("Select the file to save"),
_T("Save compressed ISO"),
wxEmptyString, wxEmptyString, wxEmptyString,
wxString::Format
(
@ -588,8 +587,8 @@ void CGameListCtrl::OnCompressGCM(wxCommandEvent& WXUNUSED (event)) {
}
}
wxProgressDialog dialog(_T("Scanning for ISOs"),
_T("Scanning..."),
wxProgressDialog dialog(iso->IsCompressed() ? _T("Decompressing ISO") : _T("Compressing ISO"),
_T("Working..."),
1000, // range
this, // parent
wxPD_APP_MODAL |

View File

@ -25,7 +25,7 @@
#include "Filesystem.h"
#include "BannerLoader.h"
#include "FileSearch.h"
#include "Blob.h"
#include "CompressedBlob.h"
#define DVD_BANNER_WIDTH 96
#define DVD_BANNER_HEIGHT 32