1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 18:26:39 +00:00

Fix output filenames not being updated in usb_gc_dumper.

This commit is contained in:
Pablo Curiel 2021-02-20 14:52:07 -04:00
parent 6f87e25f26
commit 6df7ff0cba
3 changed files with 16 additions and 3 deletions

View file

@ -410,7 +410,9 @@ int main(int argc, char *argv[])
consoleUpdate(NULL);
bool gc_update = false;
u64 btn_down = 0, btn_held = 0;
while(true)
{
utilsScanPads();
@ -430,10 +432,14 @@ int main(int argc, char *argv[])
}
selected_idx = scroll = 0;
gc_update = true;
break;
}
}
if (gc_update) continue;
if (btn_down & HidNpadButton_A)
{
if (!titleGetUserApplicationData(app_metadata[selected_idx]->title_id, &user_app_data) || !user_app_data.app_info)

View file

@ -343,11 +343,18 @@ static u32 menuGetElementCount(const Menu *menu)
static void waitForGameCardAndUsb(void)
{
consoleClear();
consolePrint("waiting for gamecard and usb session...\n");
consolePrint("waiting for gamecard...\n");
while(true)
{
if (gamecardGetStatus() == GameCardStatus_InsertedAndInfoLoaded && usbIsReady()) break;
if (gamecardGetStatus() == GameCardStatus_InsertedAndInfoLoaded && !titleIsGameCardInfoUpdated()) break;
}
consolePrint("waiting for usb session...\n");
while(true)
{
if (usbIsReady()) break;
}
}

View file

@ -738,7 +738,7 @@ bool titleIsGameCardInfoUpdated(void)
/* Signal the gamecard update info user event. */
ueventSignal(&g_titleGameCardUpdateInfoUserEvent);
/* Wait for the gamecard thread to wakes us up. */
/* Wait for the gamecard thread to wake us up. */
condvarWait(&g_gameCardCondVar, &g_titleMutex);
/* Update output value and gamecard info updated flag (if needed). */