2020-09-23 12:21:05 +01:00
# include "changelog_page.hpp"
2020-10-05 23:53:12 +01:00
namespace i18n = brls : : i18n ;
using namespace i18n : : literals ;
2020-09-23 12:21:05 +01:00
ChangelogPage : : ChangelogPage ( ) : AppletFrame ( true , true )
{
2021-03-10 20:54:17 +00:00
this - > setTitle ( " menus/changelog/changelog " _i18n ) ;
2020-09-23 12:21:05 +01:00
list = new brls : : List ( ) ;
std : : vector < std : : string > verTitles ;
std : : string change ;
std : : vector < std : : string > changes ;
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.0.1 " ) ;
changes . push_back ( " \uE016 Added dialogue box asking about ini files. \n \uE016 Fixed update app link when not connected to the internet. \n \uE016 Minor fixes here and there. " ) ;
2020-09-23 12:21:05 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.0.2 " ) ;
changes . push_back ( " \uE016 Fixed .ini files being handled poorly when installing sigpatches. Now prompts the user if they want to replace hetake_ipl.ini. " ) ;
2020-09-23 12:21:05 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.0.3 " ) ;
changes . push_back ( " \uE016 Fixed progress bar sometimes being stuck when extracting. " ) ;
2020-09-23 12:21:05 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.1.0 " ) ;
changes . push_back ( " \uE016 Added an option to download payloads to '/bootloader/payloads'. \n \uE016 Cleaned up some stuff, made .ini overwriting cleaner. \n " ) ;
2020-09-23 12:21:05 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.1.1 " ) ;
changes . push_back ( " \uE016 Added some safety checks before downloading/extracting. \n \uE016 Added the possibility to copy a payload to '/atmosphere/reboot_payload.bin' \n \uE016 Added changelog in 'Tools' \n " ) ;
2020-09-23 12:21:05 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.1.2 " ) ;
changes . push_back ( " \uE016 Added GUI to disable cheat updates for specific titles. " ) ;
2020-09-26 15:55:24 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.1.3 " ) ;
changes . push_back ( " \uE016 Now displays the latest installed cheat version. \n \uE016 Now warns in the app title if a new update is available. " ) ;
2020-09-29 15:41:43 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.2.3 " ) ;
changes . push_back ( " \uE016 Now multilingual (thanks to 'github.com/tiansongyu'). \n \uE016 Chinese and French are currently supported. " ) ;
2020-10-05 23:53:12 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.2.1 " ) ;
changes . push_back ( " \uE016 Added option to set a payload to /bootloader/update.bin " ) ;
2020-10-05 16:14:10 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.2.2 " ) ;
changes . push_back ( " \uE016 Added japanese localisation (thanks to github.com/yyoossk). " ) ;
2020-10-06 14:19:19 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.2.4 " ) ;
changes . push_back ( " \uE016 Fixed app self-update " ) ;
2020-10-07 01:08:39 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.2.5 " ) ;
changes . push_back ( " \uE016 Improved japanese translation " ) ;
2020-10-09 21:27:18 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.2.6 " ) ;
changes . push_back ( " \uE016 Added spanish translation (thanks to 'https://github.com/sergiou87' " ) ;
2020-10-11 20:02:02 +01:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.3.0 " ) ;
changes . push_back ( " \uE016 Added back the ability to update CFWs " ) ;
2020-12-12 15:41:56 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.3.1 " ) ;
changes . push_back ( " \uE016 Small fixes for bugs causing hangs. " ) ;
2020-12-13 13:52:51 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.3.2 " ) ;
changes . push_back ( " \uE016 Added ability to change the internet color of Pro Controllers. \n \uE016 Added the ability to preserve specific files when updating. \n \uE016 Added the ability to clean up downloaded archives. " ) ;
2020-12-27 17:11:40 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.4.0 " ) ;
changes . push_back ( " \uE016 Added possibility to use pre-set network settings. Add your own in `config/aio-switch-updater/internet.json. \n \uE016 Added web browser. " ) ;
2021-01-02 23:22:45 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.4.1 " ) ;
changes . push_back ( " \uE016 Fixed misleading display in internet settings page. " ) ;
2021-01-03 13:23:27 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.4.2 " ) ;
changes . push_back ( " \uE016 (hopefully) fixed unreliable copy of payloads. " ) ;
2021-01-17 17:26:20 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.4.3 " ) ;
changes . push_back ( " \uE016 Fixed switch not rebooting to hekate payload after updating. " ) ;
2021-01-18 16:24:36 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.5.0 " ) ;
changes . push_back ( " \uE016 Overhauled the app update feature. " ) ;
2021-01-28 19:26:41 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.5.1 " ) ;
changes . push_back ( " \uE016 A few graphical tweaks. " ) ;
2021-01-29 21:14:40 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v1.5.2 " ) ;
changes . push_back ( " \uE016 Added support for Traditional Chinese (thanks to 'https://github.com/qazrfv1234') " ) ;
2021-01-30 15:45:32 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v2.0.0 " ) ;
changes . push_back ( " \uE016 Added ability to download cheatslips cheats. \n \uE016 Added way to toggle out tabs. \n \uE016 Various code improvements. " ) ;
2021-02-06 17:24:47 +00:00
2021-03-02 14:05:06 +00:00
verTitles . push_back ( " v2.0.1 " ) ;
changes . push_back ( " \uE016 Fixed a bug not letting the user click no when asked if they want to install hekate. \n \uE016 Correct a bunch of typos. " ) ;
2021-02-07 15:56:36 +00:00
2021-02-09 14:10:12 +00:00
verTitles . push_back ( " v2.1.0 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Switched to a better way to get links. " ) ;
2021-02-08 20:30:58 +00:00
2021-02-09 14:10:12 +00:00
verTitles . push_back ( " v2.1.1 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Added a friendly reminder to reboot for new sigpatches to apply. \n \uE016 Changed the cheatslips cheatsheet view. " ) ;
2021-02-09 14:10:12 +00:00
2021-02-10 02:57:42 +00:00
verTitles . push_back ( " v2.1.2 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Fixed wronge hekate link. " ) ;
2021-02-10 02:57:42 +00:00
2021-02-10 17:41:13 +00:00
verTitles . push_back ( " v2.2.0 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 For cheatslips.com, the build ID of a running game will now be fetched, allowing you to access cheatsheets even if the build ID isn't listed in the versions database. " ) ;
2021-02-10 17:41:13 +00:00
2021-02-11 12:45:35 +00:00
verTitles . push_back ( " v2.2.1 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Fixed non Atmosphere CFW being wrongly categorised as ams. " ) ;
2021-02-11 12:45:35 +00:00
2021-02-12 22:42:22 +00:00
verTitles . push_back ( " v2.3.0 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Added possibility to copy a list of files to custom locations. This may come in handy for trinket/esoteric bootloader users. \n \uE016 Added warning screen on launch. \n \uE016 Few UI tweaks. \n \uE016 Traditional Chinese translation updated (qazrfv1234) " ) ;
2021-02-12 22:42:22 +00:00
2021-02-16 13:42:43 +00:00
verTitles . push_back ( " v2.3.1 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Files for batch copy are now copied according to the json order (formerly alphabetical order). " ) ;
2021-02-16 13:42:43 +00:00
2021-02-16 18:47:58 +00:00
verTitles . push_back ( " v2.3.2 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Fixed batch copy not copying :^) " ) ;
2021-02-10 17:41:13 +00:00
2021-02-18 15:15:58 +00:00
verTitles . push_back ( " v2.3.3 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Hide unsupported features for Mariko Switches " ) ;
2021-02-18 15:15:58 +00:00
2021-02-24 19:44:15 +00:00
verTitles . push_back ( " v2.3.4 " ) ;
2021-03-02 14:05:06 +00:00
changes . push_back ( " \uE016 Minor fixes, refactored old switch-cheats updater code and changed way to detect CFW " ) ;
2021-03-10 16:24:31 +00:00
verTitles . push_back ( " v2.4.0 " ) ;
2021-03-10 20:43:00 +00:00
changes . push_back ( " \uE016 Added option to extract the entire gbatemp cheats archive. \n \uE016 Shortened load times. \n \uE016 Added German localisation (thanks to github.com/Slluxx). \n \uE016 Added option to disable sysmodules prior to updating. \n \uE016 Improved Japanese localisation (thanks to github.com/yyoossk). \n \uE016 Added current AMS version display. " ) ;
2021-02-24 19:44:15 +00:00
2021-02-20 12:58:04 +00:00
for ( int i = verTitles . size ( ) - 1 ; i > = 0 ; i - - ) {
listItem = new brls : : ListItem ( verTitles [ i ] ) ;
2020-09-23 12:21:05 +01:00
change = changes [ i ] ;
2021-02-20 12:58:04 +00:00
listItem - > getClickEvent ( ) - > subscribe ( [ & , change ] ( brls : : View * view ) {
2020-09-23 12:21:05 +01:00
brls : : Dialog * dialog = new brls : : Dialog ( change ) ;
brls : : GenericEvent : : Callback callback = [ dialog ] ( brls : : View * view ) {
dialog - > close ( ) ;
} ;
2021-03-10 20:54:17 +00:00
dialog - > addButton ( " menus/Ok_button " _i18n , callback ) ;
2020-09-23 12:21:05 +01:00
dialog - > setCancelable ( true ) ;
dialog - > open ( ) ;
} ) ;
2021-02-20 12:58:04 +00:00
list - > addView ( listItem ) ;
2020-09-23 12:21:05 +01:00
}
this - > setContentView ( list ) ;
2021-03-02 14:05:06 +00:00
}
void ChangelogPage : : ShowChangelogContent ( const std : : string version , const std : : string content ) {
listItem = new brls : : ListItem ( version ) ;
listItem - > getClickEvent ( ) - > subscribe ( [ & , content ] ( brls : : View * view ) {
brls : : AppletFrame * appView = new brls : : AppletFrame ( true , true ) ;
brls : : PopupFrame : : open ( version , appView , " " , " " ) ;
} ) ;
list - > addView ( listItem ) ;
2020-09-23 12:21:05 +01:00
}