mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 00:45:37 +00:00
Minor changes in RSXTexture.h and PKG Loader
* Moved RSXTexture from RSXThread.h to RSXTexture.h * Renamed RSXTexture::Getmipmap to RSXTexture::GetMipmap * Used more GCM texture format constants in GLGSRender.h * PKG Loader: Added an "Overwrite?" dialog in case the folder dest+titleID (i.e. "/dev_hdd0/game/"+titleID) already exists. Note that in that case, the game won't be installed regardless of the option you choose on the dialog.
This commit is contained in:
parent
5f9e60c45f
commit
17b877e448
6 changed files with 78 additions and 70 deletions
|
|
@ -12,7 +12,7 @@ PKGLoader::PKGLoader(wxFile& f) : pkg_f(f)
|
|||
bool PKGLoader::Install(std::string dest, bool show)
|
||||
{
|
||||
// Initial checks
|
||||
if(!pkg_f.IsOpened())
|
||||
if (!pkg_f.IsOpened())
|
||||
return false;
|
||||
|
||||
dest = wxGetCwd() + dest;
|
||||
|
|
@ -26,6 +26,12 @@ bool PKGLoader::Install(std::string dest, bool show)
|
|||
std::string decryptedFile = wxGetCwd() + "/dev_hdd1/" + titleID + ".dec";
|
||||
|
||||
if (wxDirExists(dest+titleID)) {
|
||||
wxMessageDialog d_overwrite(NULL, "Another installation was found. Do you want to overwrite it?", "PKG Decrypter / Installer", wxYES_NO|wxCENTRE);
|
||||
if (d_overwrite.ShowModal() != wxID_YES) {
|
||||
ConLog.Error("PKG Loader: Another installation found in: %s", wxString(titleID).wx_str());
|
||||
return false;
|
||||
}
|
||||
// TODO: Remove the following two lines and remove the folder dest+titleID
|
||||
ConLog.Error("PKG Loader: Another installation found in: %s", wxString(titleID).wx_str());
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue