コード例 #1
0
ファイル: main.c プロジェクト: darkunderdog/Decrypt9WIP
int main()
{
    ClearScreenFull(true, true);
    InitFS();

    u32 menu_exit = ProcessMenu(menu, SUBMENU_START);
    
    DeinitFS();
    (menu_exit == MENU_EXIT_REBOOT) ? Reboot() : PowerOff();
    return 0;
}
コード例 #2
0
ファイル: main.c プロジェクト: rinforzando/Decrypt9WIP
int main()
{
    u32 menu_exit = MENU_EXIT_REBOOT;
    
    if (InitializeD9() <= 1) {
        menu_exit = ProcessMenu(menu, SUBMENU_START);
    }
    DeinitFS();
    
    (menu_exit == MENU_EXIT_REBOOT) ? Reboot() : PowerOff();
    return 0;
}
コード例 #3
0
ファイル: menu.c プロジェクト: soarqin/Decrypt9WIP
u32 UnmountSd()
{
    u32 pad_state;
    
    #ifdef USE_THEME
    LoadThemeGfx(GFX_UNMOUNT, false);
    DeinitFS();
    #else
    DebugClear();
    Debug("Unmounting SD card...");
    DeinitFS();
    Debug("SD is unmounted, you may remove it now.");
    Debug("Put the SD card back in before pressing B!");
    Debug("");
    Debug("(B to return, START to reboot)");
    #endif
    while (true) {
        pad_state = InputWait();
        if (((pad_state & BUTTON_B) && InitFS()) || (pad_state & BUTTON_START))
            break;
    }
    
    return pad_state;
}
コード例 #4
0
ファイル: menu.c プロジェクト: PlayerAAA/Decrypt9WIP_ES
u32 UnmountSd()
{
    u32 pad_state;

    #ifdef USE_THEME
    LoadThemeGfx(GFX_UNMOUNT, false);
    DeinitFS();
    #else
    DebugClear();
    Debug("Desmonatando la tarjeta SD...");
    DeinitFS();
    Debug("La tarjeta SD ha sido desmontada, puedes removerla ahora.");
    Debug("¡Inserta la tarjeta SD antes de pulsar B!");
    Debug("");
    Debug("(B para volver, START para reiniciar)");
    #endif
    while (true) {
        pad_state = InputWait();
        if (((pad_state & BUTTON_B) && InitFS()) || (pad_state & BUTTON_START))
            break;
    }

    return pad_state;
}
コード例 #5
0
ファイル: menu.c プロジェクト: themrrobert/Decrypt9
u32 UnmountSd()
{
    u32 pad_state;
    
    DebugClear();
    Debug("Unmounting SD card...");
    DeinitFS();
    Debug("SD is unmounted, you may remove it now.");
    Debug("Put the SD card back in before pressing B!");
    Debug("");
    Debug("(B to return, START to reboot)");
    while (true) {
        pad_state = InputWait();
        if (((pad_state & BUTTON_B) && InitFS()) || (pad_state & BUTTON_START))
            break;
    }
    
    return pad_state;
}