Permalink
Browse files

- Fixed some lines of code messed up by search-and-replace tool, ever…

…ything should be working fine now.
  • Loading branch information...
1 parent eadd1d1 commit 38ef238edb27bc2f9c4ae7f7a7c39faffa485446 @CaptainCPS committed Jan 8, 2013
Showing with 29 additions and 10 deletions.
  1. BIN msvc/gamePKG/gamePKG.suo
  2. BIN release/PS3_GAME/USRDIR/EBOOT.BIN
  3. +29 −10 src/gamePKG.cpp
Binary file not shown.
Binary file not shown.
View
@@ -269,7 +269,7 @@ void c_gamePKG::InputFrame()
if ( !app.mIsCrossPressed && app.crossPressedNow )
{
- if(pkglst[nTotalPKG].bQueued)
+ if(pkglst[nSelectedPKG].bQueued)
{
// already queued...
::cellMsgDialogOpen2(
@@ -301,8 +301,9 @@ void c_gamePKG::DlgDisplayFrame()
sprintf(
szMsg,
"Processing \"%s\" [%.2f %s]...\n\nPlease wait, this could take a while depending on the size of the PKG. Do not turn off the system.",
- pkglst[nTotalPKG].path,
- GetByteUnit(pkglst[nTotalPKG].nSize), GetByteUnitStr(pkglst[nTotalPKG].nSize)
+ pkglst[nSelectedPKG].title,
+ GetByteUnit(pkglst[nSelectedPKG].nSize),
+ GetByteUnitStr(pkglst[nSelectedPKG].nSize)
);
::cellMsgDialogOpen2(
@@ -318,15 +319,21 @@ void c_gamePKG::DlgDisplayFrame()
cellMsgDialogAbort();
char szMsg[256] = "";
- sprintf(szMsg, "Successfully added \"%s\" to queue.", pkglst[nTotalPKG].path);
+ sprintf(
+ szMsg,
+ "Successfully added \"%s\" [%.2f %s] to queue.",
+ pkglst[nSelectedPKG].title,
+ GetByteUnit(pkglst[nSelectedPKG].nSize),
+ GetByteUnitStr(pkglst[nSelectedPKG].nSize)
+ );
::cellMsgDialogOpen2(
CELL_MSGDIALOG_DIALOG_TYPE_NORMAL | CELL_MSGDIALOG_TYPE_BUTTON_TYPE_OK | CELL_MSGDIALOG_TYPE_DISABLE_CANCEL_ON,
szMsg,
DlgCallbackFunction, NULL, NULL
);
- pkglst[nTotalPKG].bQueued = true;
+ pkglst[nSelectedPKG].bQueued = true;
}
// COPY [ERROR]
@@ -335,18 +342,24 @@ void c_gamePKG::DlgDisplayFrame()
cellMsgDialogAbort();
char szMsg[256] = "";
- sprintf(szMsg, "Error while processing \"%s\".", pkglst[nTotalPKG].path);
+ sprintf(
+ szMsg,
+ "Error while processing \"%s\" [%.2f %s].",
+ pkglst[nSelectedPKG].title,
+ GetByteUnit(pkglst[nSelectedPKG].nSize),
+ GetByteUnitStr(pkglst[nSelectedPKG].nSize)
+ );
::cellMsgDialogOpen2(
CELL_MSGDIALOG_DIALOG_TYPE_NORMAL | CELL_MSGDIALOG_TYPE_BUTTON_TYPE_OK | CELL_MSGDIALOG_TYPE_DISABLE_CANCEL_OFF,
szMsg,
DlgCallbackFunction, NULL, NULL
);
- pkglst[nTotalPKG].bQueued = false;
+ pkglst[nSelectedPKG].bQueued = false;
- DeletePDBFiles(pkglst[nTotalPKG].nPKGID);
- RemovePKGDir(pkglst[nTotalPKG].nPKGID);
+ DeletePDBFiles(pkglst[nSelectedPKG].nPKGID);
+ RemovePKGDir(pkglst[nSelectedPKG].nPKGID);
}
if(nStatus == STATUS_RM_QUEUE_START)
@@ -363,7 +376,13 @@ void c_gamePKG::DlgDisplayFrame()
cellMsgDialogAbort();
char szMsg[256] = "";
- sprintf(szMsg, "Successfully removed \"%s\" from queue.", pkglst[nTotalPKG].title);
+ sprintf(
+ szMsg,
+ "Successfully removed \"%s\" [%.2f %s] from queue.",
+ pkglst[nSelectedPKG].title,
+ GetByteUnit(pkglst[nSelectedPKG].nSize),
+ GetByteUnitStr(pkglst[nSelectedPKG].nSize)
+ );
::cellMsgDialogOpen2(
CELL_MSGDIALOG_DIALOG_TYPE_NORMAL | CELL_MSGDIALOG_TYPE_BUTTON_TYPE_OK | CELL_MSGDIALOG_TYPE_DISABLE_CANCEL_ON,

0 comments on commit 38ef238

Please sign in to comment.