Move variable temp into the if statement in function Update in PSPGamedataInstallDialog.cpp. It's only used in this branch statement.

This commit is contained in:
Lioncash 2013-10-05 18:30:00 -04:00
parent dc9f839583
commit a7836af14c

View File

@ -76,12 +76,12 @@ int PSPGamedataInstallDialog::Update() {
u64 totalLength;
u64 restLength;
u32 bytesToRead = 4096;
u8 *temp = new u8[4096];
u32 inhandle;
u32 outhandle;
size_t readSize;
if (readFiles < numFiles) {
u8 *temp = new u8[4096];
fullinFileName = "disc0:/PSP_GAME/INSDIR/" + inFileNames[readFiles];
outFileName = GetGameDataInstallFileName(&request, inFileNames[readFiles]);
totalLength = pspFileSystem.GetFileInfo(fullinFileName).size;