diff --git a/Makefile b/Makefile index e0a7599..201d4d0 100644 --- a/Makefile +++ b/Makefile @@ -163,7 +163,7 @@ $(info $$NROFLAGS is [${NROFLAGS}]) all: @echo making everything - @$(MAKE) --no-print-directory -C $(CURDIR) -f Makefile libusb + #@$(MAKE) --no-print-directory -C $(CURDIR) -f Makefile libusb @$(MAKE) --no-print-directory -C $(CURDIR) -f Makefile plutonium @$(MAKE) --no-print-directory -C $(CURDIR) -f Makefile tinwoo diff --git a/romfs/images/Background.png b/romfs/images/Background.png index 0159700..247bc6b 100644 Binary files a/romfs/images/Background.png and b/romfs/images/Background.png differ diff --git a/romfs/images/Hd.png b/romfs/images/Hd.png index 5b9c7a4..eacbd8b 100644 Binary files a/romfs/images/Hd.png and b/romfs/images/Hd.png differ diff --git a/romfs/images/Install.png b/romfs/images/Install.png index 70ab8df..d661f06 100644 Binary files a/romfs/images/Install.png and b/romfs/images/Install.png differ diff --git a/romfs/images/Main.png b/romfs/images/Main.png index 4ced054..1101a8f 100644 Binary files a/romfs/images/Main.png and b/romfs/images/Main.png differ diff --git a/romfs/images/Net.png b/romfs/images/Net.png index 3739169..fb1628a 100644 Binary files a/romfs/images/Net.png and b/romfs/images/Net.png differ diff --git a/romfs/images/Sd.png b/romfs/images/Sd.png index 732e90c..bcb2124 100644 Binary files a/romfs/images/Sd.png and b/romfs/images/Sd.png differ diff --git a/romfs/images/Settings.png b/romfs/images/Settings.png index 7fdfcf6..7f94d3b 100644 Binary files a/romfs/images/Settings.png and b/romfs/images/Settings.png differ diff --git a/romfs/images/Usb.png b/romfs/images/Usb.png index 4ec03f9..e0a5158 100644 Binary files a/romfs/images/Usb.png and b/romfs/images/Usb.png differ diff --git a/romfs/lang/de.json b/romfs/lang/de.json index 0257b20..507834c 100644 --- a/romfs/lang/de.json +++ b/romfs/lang/de.json @@ -36,7 +36,7 @@ "title": "Applet-Modus wird nicht unterstützt", "desc": "Es kann zu Problemen bei der Verwendung des TinWoo Installer im Applet-Modus kommen.\nWenn du Probleme hast, starte den TinWoo Installer über einen installierten Titel (halte R gedrückt, während du ein Spiel startest)!" }, - "buttons": "\ue0e0 Auswählen \ue0e3 Freiraum \ue0e1 Beenden" + "buttons": "\ue0e0 Auswählen \ue0e3 Freiraum \ue0e4+\ue0e5 oder \ue0ef oder \ue0f0 Beenden" }, "inst": { "net": { diff --git a/romfs/lang/en.json b/romfs/lang/en.json index ca11371..827aa2a 100644 --- a/romfs/lang/en.json +++ b/romfs/lang/en.json @@ -36,7 +36,7 @@ "title": "Applet Mode not supported", "desc": "You may experience issues using TinWoo Installer in Applet Mode. If you do\nhave problems, please switch to running TinWoo Installer over an installed\ntitle (hold R while starting a game)!" }, - "buttons": "\ue0e0 Select \ue0e3 FreeSpace \ue0e1 Exit " + "buttons": "\ue0e0 Select \ue0e3 FreeSpace \ue0e4+\ue0e5 or \ue0ef or \ue0f0 Exit" }, "inst": { "net": { diff --git a/romfs/lang/fr.json b/romfs/lang/fr.json index e3a4c8a..587172a 100644 --- a/romfs/lang/fr.json +++ b/romfs/lang/fr.json @@ -36,7 +36,7 @@ "title": "Le mode Applet n'est pas compatible", "desc": "Vous pouvez rencontrer des problèmes en utilisant TinWoo Installer en mode Applet. Si vous \navez des problèmes, veuillez lancer TinWoo en mode 'non-Applet'\n (Maintenez R pendant le démarrage d'un jeu)!" }, - "buttons": "\ue0e0 Select \ue0e3 Espace libre \ue0e1 Quitter" + "buttons": "\ue0e0 Select \ue0e3 Espace libre \ue0e4+\ue0e5 ou \ue0ef ou \ue0f0 Quitter" }, "inst": { "net": { diff --git a/romfs/lang/it.json b/romfs/lang/it.json index 5536524..560c193 100644 --- a/romfs/lang/it.json +++ b/romfs/lang/it.json @@ -36,7 +36,7 @@ "title": "Applet Mode non è supportata", "desc": "Puoi incontrare problemi utilizzando TinWoo Installer in Applet Mode. Se\nriscontri problemi, ti prego di utilizzare TinWoo Installer avviandolo attraverso un gioco\ngià installato (tieni premuto R mentre avvii un gioco)!" }, - "buttons": "\ue0e0 Seleziona \ue0e3 Spazio libero \ue0e1 Esci" + "buttons": "\ue0e0 Seleziona \ue0e3 Spazio libero \ue0e4+\ue0e5 o \ue0ef o \ue0f0 Esci" }, "inst": { "net": { diff --git a/romfs/lang/jp.json b/romfs/lang/jp.json index 38e6ffd..e8a4789 100644 --- a/romfs/lang/jp.json +++ b/romfs/lang/jp.json @@ -36,7 +36,7 @@ "title": "アプレットモードはサポートされていません", "desc": "アプレットモードでTinWooを使用すると問題が発生する場合があります。\n問題が発生した場合は、インストール済みのタイトルでTinWooを実行するように切り替えてください\n(ゲームの開始中にRを押したままにしてください)!" }, - "buttons": "\ue0e0 選択 \ue0e3 フリースペース \ue0e1 終了" + "buttons": "\ue0e0 選択 \ue0e3 フリースペース \ue0e4+\ue0e5 また \ue0ef また \ue0f0 終了" }, "inst": { "net": { diff --git a/romfs/lang/ru.json b/romfs/lang/ru.json index 8e99312..bbd18cb 100644 --- a/romfs/lang/ru.json +++ b/romfs/lang/ru.json @@ -36,7 +36,7 @@ "title": "Applet Mode не поддерживается", "desc": "В TinWoo Installer могут возникать проблемы когда и если он запущен в режиме апплета.\nЕсли у вас есть трудности, пожалуйста запустите приложение через установленную игру\n(зажмите R при запуске)!" }, - "buttons": "\ue0e0 Выбрать \ue0e3 Свободное место \ue0e1 Выход" + "buttons": "\ue0e0 Выбрать \ue0e3 Свободное место \ue0e4+\ue0e5 или \ue0ef или \ue0f0 Выход" }, "inst": { "net": { diff --git a/source/netInstall.cpp b/source/netInstall.cpp index 46c48ac..8406cc0 100644 --- a/source/netInstall.cpp +++ b/source/netInstall.cpp @@ -221,6 +221,13 @@ namespace netInstStuff{ std::vector OnSelected() { + /* + https://switchbrew.github.io/libnx/hid_8h.html#aa163470a1a7b811662e5c38905cc86fba4d9ae7fa7e27704abaf86c8a8a5398bd + */ + padConfigureInput(8, HidNpadStyleSet_NpadStandard); + PadState pad; + padInitializeAny(&pad); + u64 freq = armGetSystemTickFreq(); u64 startTime = armGetSystemTick(); @@ -252,6 +259,8 @@ namespace netInstStuff{ while (true) { + padUpdate(&pad); + // If we don't update the UI occasionally the Switch basically crashes on this screen if you press the home button u64 newTime = armGetSystemTick(); if (newTime - startTime >= freq * 0.25) { @@ -260,13 +269,10 @@ namespace netInstStuff{ } // Break on input pressed - padConfigureInput(1, HidNpadStyleSet_NpadStandard); - PadState pad; - padInitializeDefault(&pad); - hidInitializeTouchScreen(); - u64 kDown = padGetButtonsDown(&pad); + //fix the A button on this page - for some reason it crashes the appif pressed...27/4/22 + if (kDown & HidNpadButton_B) { diff --git a/source/ui/mainPage.cpp b/source/ui/mainPage.cpp index f02b79e..dd1198f 100644 --- a/source/ui/mainPage.cpp +++ b/source/ui/mainPage.cpp @@ -210,7 +210,7 @@ namespace inst::ui { this->Add(this->eggImage); this->awooImage->SetVisible(!inst::config::gayMode); this->Add(this->optionMenu); - //this->AddThread(this->mainMenuThread); //fix later to prevent UI from freezing.... + //this->AddThread(mainMenuThread); //fix later to prevent UI from freezing.... } void MainPage::installMenuItem_Click() { @@ -257,20 +257,20 @@ namespace inst::ui { mainApp->LoadLayout(mainApp->optionspage); } - void MainPage::onInput(u64 Down, u64 Up, u64 Held, pu::ui::TouchPoint touch_pos) { + void MainPage::onInput(u64 Down, u64 Up, u64 Held, pu::ui::TouchPoint touch_pos) { //some issue with held - fix later....27/4/22 - if (((Down & HidNpadButton_Plus) || (Down & HidNpadButton_Minus) || (Down & HidNpadButton_B)) && mainApp->IsShown()) { + if (((Down & HidNpadButton_Plus) || (Down & HidNpadButton_Minus) || ((Down & HidNpadButton_L) && ( Down & HidNpadButton_R))) && mainApp->IsShown()) { mainApp->FadeOut(); mainApp->Close(); } - if (Down & HidNpadButton_A) { + if (Up & HidNpadButton_A) { switch (this->optionMenu->GetSelectedIndex()) { case 0: this->installMenuItem_Click(); break; case 1: - this->netInstallMenuItem_Click(); + this->netInstallMenuItem_Click(); break; case 2: MainPage::usbInstallMenuItem_Click(); @@ -289,14 +289,19 @@ namespace inst::ui { } } + /* + if (Down & HidNpadButton_X) { this->awooImage->SetVisible(false); this->eggImage->SetVisible(true); } - if (Up & HidNpadButton_A) { + if (Down & HidNpadButton_A) { this->eggImage->SetVisible(false); if (!inst::config::gayMode) this->awooImage->SetVisible(true); } + + */ + if (Down & HidNpadButton_Y) { mathstuff(); } diff --git a/source/ui/netInstPage.cpp b/source/ui/netInstPage.cpp index a1b4618..eabe154 100644 --- a/source/ui/netInstPage.cpp +++ b/source/ui/netInstPage.cpp @@ -163,6 +163,7 @@ namespace inst::ui { } void netInstPage::onInput(u64 Down, u64 Up, u64 Held, pu::ui::TouchPoint touch_pos) { + if (Down & HidNpadButton_B) { mainApp->LoadLayout(mainApp->mainPage); } diff --git a/source/usbInstall.cpp b/source/usbInstall.cpp index 2d644fa..1199c3e 100644 --- a/source/usbInstall.cpp +++ b/source/usbInstall.cpp @@ -60,13 +60,15 @@ namespace usbInstStuff { std::vector OnSelected() { TUSHeader header; + + padConfigureInput(8, HidNpadStyleSet_NpadStandard); + PadState pad; + padInitializeAny(&pad); + while(true) { if (bufferData(&header, sizeof(TUSHeader), 500000000) != 0) break; - padConfigureInput(1, HidNpadStyleSet_NpadStandard); - PadState pad; - padInitializeDefault(&pad); - hidInitializeTouchScreen(); + padUpdate(&pad); u64 kDown = padGetButtonsDown(&pad); if (kDown & HidNpadButton_B) return {}; diff --git a/source/util/network_util.cpp b/source/util/network_util.cpp index 816c33f..7578c3e 100644 --- a/source/util/network_util.cpp +++ b/source/util/network_util.cpp @@ -242,6 +242,8 @@ namespace tin::network { errno = 0; } + + padUpdate(&pad); //test return read; } @@ -259,6 +261,8 @@ namespace tin::network { errno = 0; } + + padUpdate(&pad); //test return written; }