simplify the usb transfer process by using an aligned buffer to transfer to/from.

This commit is contained in:
ITotalJustice
2025-04-29 14:17:12 +01:00
parent 5b82e07b1c
commit 1eae35f072
4 changed files with 89 additions and 84 deletions

View File

@@ -11,6 +11,7 @@
#include "download.hpp"
#include "defines.hpp"
#include "i18n.hpp"
#include "ui/menus/usb_menu.hpp"
#include <cstring>
#include <minizip/unzip.h>
@@ -208,6 +209,9 @@ MainMenu::MainMenu() {
this->SetActions(
std::make_pair(Button::START, Action{App::Exit}),
std::make_pair(Button::SELECT, Action{[this](){
App::Push(std::make_shared<ui::menu::usb::Menu>());
}}),
std::make_pair(Button::Y, Action{"Menu"_i18n, [this](){
auto options = std::make_shared<Sidebar>("Menu Options"_i18n, "v" APP_VERSION_HASH, Sidebar::Side::LEFT);
ON_SCOPE_EXIT(App::Push(options));

View File

@@ -128,6 +128,7 @@ void Menu::Update(Controller* controller, TouchInfo* touch) {
if (result) {
App::Notify("Usb install success!"_i18n);
m_state = State::Done;
SetPop();
} else {
App::Notify("Usb install failed!"_i18n);
m_state = State::Failed;