Commit Graph

110 Commits

Author SHA1 Message Date
yellows8
1483f4d012 Fixed building for pc-build. 2018-10-28 14:48:44 -04:00
yellows8
d616ed02a7 Fixed buffer overflow vuln with netloader args introduced with the original netloader commit. Fixed unrelated bounds check in launchAddArg() which assumed there was nothing after argData_s.buf within argData_s, which was no longer the case once nxlink_host was added to argData_s. 2018-10-27 16:11:02 -04:00
yellows8
1435a2fb3b Use non-blocking for netloader_datafd. Added sendall which is used instead of calling send directly, the output len from sendall is now checked. Check recvall len output when transferring args. The blocking handling in recvall/sendall now uses netloaderGetExit(). netloader_error() now uses locking, and only writes to netloader_errortext when it's not set. netloader_error() also aborts when netloader exit was requested. 2018-10-27 14:42:07 -04:00
yellows8
8888bff85f Fixed touch handling with netloader msgbox. Swipe up can now be used to exit netloader. Added menuIsNetloaderActive(). 2018-10-24 19:47:45 -04:00
yellows8
d97eebc26f Display a progress bar for netloader in the msgbox. Adjusted the language.c netloader strings so that the total newlines for each StrId matches. Fixed GetTextXCoordinate with 'c'. Moved the menuMsgBoxSetNetloaderState call into menuUpdateNetloader and only pass netloaderState into menuUpdateNetloader, etc. Use theme colors in msgbox. Various msgbox adjustments. Added progressBarColor to theme. 2018-10-24 18:38:50 -04:00
yellows8
86632292b0 Display netloader status with a modified msgbox.
* Enabled StrIds in language.c for this with some adjustments.
* Moved sockets init/exit into netloaderInit/netloaderExit, netloaderInit now returns Result.
* Changed the params for netloaderGetState to an output struct.
* In netloaderTask(), check netloader_exitflag at the end before clearing it.
* Moved code calling loadnro from netloader_loop into netloaderTask.
* Call thrd_sleep with the while-loop calling netloader_loop in netloaderTask.
* Various other changes.
2018-10-23 20:13:10 -04:00
yellows8
ba4c80d76d Fixed exiting with + button when netloader is active. 2018-10-22 22:13:33 -04:00
yellows8
6d6fb4e3a3 Allow aborting the netloader transfer when the user presses B. When decompress() aborts/fails, delete the file. When returning to HBMENU_DEFAULT from netloader, reload the menu since the netloader NRO may have been deleted due to transfer abort/failure. Minor adjustments. 2018-10-20 12:54:03 -04:00
yellows8
45a10488b1 Moved netloader to the worker thread. Minor improvements. 2018-10-20 11:13:29 -04:00
yellows8
59e2d7a306 Display an error screen with print-console instead of using fatalSimple. Display a msgbox in launchFile() when an error occurs instead of using fatalSimple. Better error handling etc in worker/launch. 2018-10-18 19:06:59 -04:00
yellows8
11dccb4fd0 Added worker, based on 3ds new-hbmenu. 2018-10-17 22:18:09 -04:00
yellows8
437895a3c8 Display '{button} {text}' for theme-menu. 2018-10-17 12:10:45 -04:00
yellows8
80e2e0aae7 Display '{button} {text}' for netloader. Added theme handling for this. StrId_NetLoader is used for this, with '3dslink' removed from the text. 2018-10-17 10:17:47 -04:00
Dachuu
b28ddcaddc Added french strings (#69)
* Added french strings
2018-10-16 15:01:08 -04:00
yellows8
0abcb1172a Implemented support for file-associations, closes #25. Various improvements. Cleanup icon/icon_size state in menuEntryParseIcon() on failure. Added fsobjExists() which is now called at the start of menuEntryLoad(). Added menuEntryLoadExternalIcon() and menuEntryImportIconGfx(). 2018-10-10 18:55:37 -04:00
Daniel Bernard
8b86b36393 Add support to display current charge, and indicate whether or not device is charging (#67)
* Add support to display current charge, and indicate whether or not device is charging.
Updated Makefile.pc to incorporate new icon binaries

* Refactored power-related code, added drawIcon

Added common power interface

* Add battery icon and shift charge text as required
2018-10-09 18:27:43 -04:00
Sunguk Lee
afa9bd49d0 Change Korean translation for StrId_Actions_Apply 2018-10-09 11:41:46 -04:00
yellows8
e1a1bac230 More pos adjustments for time-display and ThemeMenu text. 2018-10-06 21:59:15 -04:00
yellows8
a059b856b5 Swap y-pos for time-display and ThemeMenu text. 2018-10-06 11:12:33 -04:00
yellows8
020a9f61ba Enabled time display with some adjustments, localtime() is now used for this. 2018-10-05 21:13:52 -04:00
yellows8
e01ca3150e Moved path init code from menuStartup() into new func menuStartupPath(), which now creates the config dirs if needed. Added menuGetRootBasePath(), which is now used for config paths and pc-build fonts. Changed some funcs from () to (void). Fixed broken button handling in pc_main for theme-menu. This fixes pc-build support for config/theme-menu. 2018-10-01 12:53:42 -04:00
yellows8
6e11672e20 Improved waveBlendAdd, based on code from @fincs. 2018-09-30 22:05:19 -04:00
NightlyFox
1c8a446920 enhancement: replaced nanojpeg with turbojpeg library (#65) (Closes #7)
* enhancement: replaced nanojpeg with turbojpeg library
* added space after if ()
2018-09-30 18:13:33 -04:00
yellows8
d39efdaee1 Moved code for handling A-button from nx_main/pc_main into a dedicated func, which now only handles menu entries when hbmenu_state isn't netloader. Removed old code. 2018-09-29 17:57:32 -04:00
yellows8
69e11599f4 Moved string for default-theme-name into language.c, and fixed language.c whitespace. 2018-09-29 12:07:51 -04:00
yellows8
a9d7a47f2e Removed removeDriveFromPath() and store the theme filename in settings.cfg instead of the absolute path. 2018-09-29 11:58:29 -04:00
yellows8
5b35642de7 Fixed default theme handling in themeMenuScan(). 2018-09-28 23:35:31 -04:00
NightlyFox
992c4c482b Implemented a theme switcher feature (#62)
* Implemented Theme Menu.

* Minor adjustments.

* added two new theming attributes, borderColor, borderTextcolor, allows users to modify the boxes that surrounds the menu entries

* added theme info to config file, users can now add theme author, theme name, and theme version to a theme config file.

* tested building on mac osx, added to .gitignore and make clean for files generated on osx

* The path for the theme is now stored in a config string in settings.cfg, instead of a hard-coded theme.cfg path.

* added functions to create/modify settings config for hbmenu theme

* added Default theme entry that will always insert itself at the front of the list of themes

* added code for + and - button, using - button for theme menu now (button display for this is disabled).
2018-09-28 23:20:24 -04:00
newget
985dc946fe Improved korean 2018-09-15 17:22:46 -04:00
Dachuu
93591ef3e1 Added french string (#58)
Added french string to line 218 (StrId_LastLoadResult and StrId_NetLoaderOffline).
2018-09-15 17:20:55 -04:00
friedkeenan
8909142fb4 Implement Theming (#57)
* Implement theming and fix spelling errors, fixes issue #6.

Now requires libconfig
"separator" was spelled "seperator"

* Added default case for when the system theme is not the values for light/dark.

The default case acts like the system theme is the dark one.
2018-09-13 15:16:33 -04:00
SegFault42
4987cbddb1 fix memset error 2018-08-16 19:13:29 -04:00
YY
13676f64fd Improved Japanese language support:
* Improved slight ~ serious Japanese translation miss.
* Added new STR_JP.
2018-07-31 20:34:52 -04:00
AntonioDePau
d36044daea Update language.c (#19)
* Update language.c
2018-07-31 19:43:53 -04:00
MCPE_PC
1e2c2cc877 🦄 Improve & add Korean language 2018-07-31 14:04:44 -04:00
Thompson Lee
03e7b110e7 Updated language.c for Traditional Chinese (#33)
* Updated language.c 

to correct current Traditional Chinese translations.
2018-07-31 13:00:59 -04:00
Steven Mattera
00e96fd53b Added touch controls. (#41)
* Added touch controls.
2018-07-30 17:23:34 -04:00
yellows8
c4d22af61e Use SharedFont for the A/B button icons. 2018-07-27 21:05:25 -04:00
yellows8
7c3bb175d9 Added font-loading support for the pc-build. 2018-07-24 21:50:01 -04:00
Dave Murphy
6544353245 create switch folder if it doesn't exist (#39)
Fixes #38.
2018-05-30 11:16:16 -04:00
Dave Murphy
4539b8e78d clean up includes for OSX 2018-05-12 16:57:17 +02:00
yellows8
94b1d648d1 Fixed string warnings with gcc 8.1.0. 2018-05-09 21:25:53 -04:00
yellows8
bbf6bf50f7 Always set PING_ENABLED=1, and removed outdated comment. 2018-05-08 16:28:55 -04:00
yellows8
1e232372d2 Use shared-font. Setting s_textLang is still disabled, until language.c is updated. Check for setsysInitialize failure. Moved .nxfnt files into data/unused/. Currently text will not display with the pc-build since no font is loaded for it. Disabled y+=baseline in text-drawing, and adjusted all callers y-pos to manually add the original baseline (so that y-pos matches with the different font). 2018-04-28 11:55:16 -04:00
yellows8
4563794505 Use nacp.h from libnx. Clear errortext in netloader_error(). 2018-04-26 17:28:58 -04:00
yellows8
8506e1b316 In netloader_error(), use same msgbox width/height as main() since 'OK' wasn't displayed properly. Also use snprintf instead of sprintf in netloader_error(). 2018-03-20 23:34:51 -04:00
yellows8
f738578dc1 Use a copy of the input text string for message-box. 2018-03-20 23:15:21 -04:00
Dave Murphy
03a4de8c25 use iquote for libnx headers on pc (#29) 2018-03-19 18:57:47 -04:00
yellows8
5731858272 Moved 'v' from APP_VERSION in Makefile to Makefile.nx/Makefile.pc, so that the version in the built nro-nacp doesn't include 'v'. Removed nxlink.h include since switch.h has this. 2018-03-19 18:36:58 -04:00
Dave Murphy
ebced71ec3 Add nxlink support (#27)
* Add nxlink support

* use libnx nro.h

* make sure path doesn't overflow

* convert indentation to spaces
2018-03-19 21:42:58 +01:00