Commit Graph
55 Commits
Author SHA1 Message Date
ITotalJustice 6dbf48d73c fix badly formatted string for i18n
fixes #68
2025-01-01 17:42:07 +00:00
ITotalJustice 1614c8e2e4 remove debug code in homebrew menu 2025-01-01 17:38:07 +00:00
ITotalJustice cdebcad4fe correctly path npdm kc flags on ams 1.7.1 or greater
fixes #67
2025-01-01 17:34:54 +00:00
ITotalJustice 54c63d6f3b add support for mounting different fs.
currently, this feature isn't very useful as you cannot copy/move files across different fs.
2024-12-31 23:58:49 +00:00
ITotalJustice d840a8ddba re-do how protected files work, by default everything is writeable, aside from fs.
the design in now opt-out rather than opt-in.

for fs, it is still opt-in. this is because the risk of a user deciding to delete a file / folder in the filebrowser menu.
this can now be toggled in the the advanced options menu within filebrowser.
2024-12-31 22:52:45 +00:00
ITotalJustice c3b31d0fdd initial work on support custom fs mount points 2024-12-31 22:23:50 +00:00
ITotalJustice dd1a6eb25b initial work on patching npdm debug flags, stubbed for now
stubbed as bit(19) doesn't seem to do what i thought it would.

fixes #67
2024-12-31 22:05:04 +00:00
ITotalJustice 271fab66f5 add option to restore hbmenu when disabling "Replace hbmenu on exit".
fixes #66
2024-12-31 18:13:30 +00:00
ITotalJustice 45aa7c4e62 fix forwarder icon passing in the wrong size, fix github zip detection / extraction, add back url in json
- i was passing the wrong size for icon, so it always failed to load.
- i didnt realise zips can have many content types, so now i search for the name "zip" which works well.
- extracting a zip will fail if the files are all in the root, ie, no folder, and the subfolders do
  not already exist.
- fix misspelling of download.
2024-12-31 10:15:30 +00:00
ITotalJustice 9b1788d1ec i forgot to enable buffered io for ftp... 2024-12-31 05:52:51 +00:00
ITotalJustice ac06631156 fix building 2024-12-31 04:53:33 +00:00
ITotalJustice bc39e668eb add pre/post install message options for github json 2024-12-31 04:41:19 +00:00
ITotalJustice e452615c77 fix etag cache not being returned upon the 2nd request, add jump page support for all menus.
- all menus feature page jumping, using L2/R2 (or DPAD_LEFT/DPAD_RIGHT in list menus)
- successive calls to fetch the etag would fail, this was seen in themezer and github menus.
- add limit the number of icons loaded per frame in homebrew menu.
- display default icon the image is not ready to be loaded / invalid.

fixes #53
2024-12-31 03:57:08 +00:00
ITotalJustice 588eb01379 poll main_menu vars (ip, charge% time) every 1s, rather than every frame. 2024-12-30 21:28:28 +00:00
ITotalJustice 4855a01f1a further simplify download cache by using a single file
this slightly improves lookup time for each cached entry (etag and last-modified)
by setting both entries next to each other, meaning when the one is found, the other
is already loaded in memory.
2024-12-30 21:12:29 +00:00
ITotalJustice cb7fb0e506 use ftpsrv config and mountpoints, improve ftp performance by using its vfs. 2024-12-30 21:09:32 +00:00
ITotalJustice cdb38f27a7 simplify etag caching requests 2024-12-30 02:27:52 +00:00
ITotalJustice 7804bbbcbc add support for finding daybreak in non-standard paths (#62) 2024-12-29 11:52:34 +00:00
ITotalJustice 5db5f93af1 fix building 2024-12-29 01:15:37 +00:00
ITotalJustice 5e315bd65f many fixes and performance improvements for network requests (see commit details)
- add etag support
- add last-modified support

with the above 2 changes, this means that all downloads can be cached. when attempting to download a file,
if the file is an image, load from cache. after, the download is processed with the above tags sent. if a 304 code
is received, then the file hasn't changed. otherwise, the new tags are saved and the downloaded file is now used (in the
case of an image, the new image is now loaded over the cached one).

this results in a *huge* speed improvement and overall a huge amount of bandwidth is saved for both the client and server.

- themezer requests now only request the data needed.

this results in a json file that is 4-5x smaller, meaning a much faster download and parsing time.

- loading images is capped to 2 images a frame. this was done to avoid fs being the bottle neck.
  a 9 page listing will take 5 frames. scrolling through lists is more responsive.

- downloads are pushed to the front of the queue as they're added. the point of this is to prioritise
  data that we need now.

- fix potential crash when sorting files based on names as its possible for a file to have the same name
  in the metadata. this fallsback to sorting by path, which is unique.

- add timeout for processing events. this was done in order to not block the main thread for too long.

- github json files have changed from a name + url to a repo + author pair.
- drawing widgets now starts from the last file in the array. as a menu takes up the whole screen, it
 is pointless drawing menu's underneath. this halves gpu usage.
- download url caching has been removed. this was added to fix a race condition when opening /
  closing a widget which starts a download when created. this would result in 2 same files being
  downloaded at the same time. this is no longer an issue and was overhead per download request.
2024-12-29 00:33:31 +00:00
ITotalJustice 2edfe91ad6 re-write download code to support headers, needed for etag support.
etag support will be added later. github supports it and themezer probably does as well.
appstore does not sadly...
2024-12-27 02:28:44 +00:00
ITotalJustice 7005118876 Create FUNDING.yml 2024-12-26 19:23:39 +00:00
ITotalJustice e3722f2591 include name when prompting the user to select which asset to download 2024-12-26 18:29:03 +00:00
ITotalJustice 47855ce7b4 change workflow to only build MinSizeRel 2024-12-26 18:11:53 +00:00
ITotalJustice ec7caabdbd add GitHub downloader, fix yyjson helper missing break, hide popup list when out of focus 2024-12-26 18:11:03 +00:00
ITotalJustice f01dbf7c67 silence warning, add credit to readme, bump version for release 2024-12-25 22:27:25 +00:00
ITotalJustice 37890f157d add mtp (haze) ftp (ftpsrv), update RA file assoc, nxlink now polls for connection. 2024-12-25 22:17:21 +00:00
ITotalJusticeandYorunokyujitsu 3df676df0f New strings added and update ko, ja, se(https://github.com/ITotalJustice/sphaira/pull/36), es(https://github.com/ITotalJustice/sphaira/pull/38), zh(https://github.com/ITotalJustice/sphaira/pull/42), fr(https://github.com/ITotalJustice/sphaira/pull/45) translations. (#44)
Co-authored-by: Yorunokyujitsu <seonmini1315@gamil.com>
2024-12-24 08:55:29 +00:00
ITotalJustice 372399a27d remove more unused strings 2024-12-21 21:18:13 +00:00
ITotalJustice 483b2b3ce0 add option to restart sphaira upon installing an update 2024-12-21 20:36:59 +00:00
ITotalJustice e0040b625e remove unused strings from translations 2024-12-21 20:11:22 +00:00
ITotalJustice 10f079e881 make progress popup a little nicer, store json timeout is now 1h, initial work on storing update changelog
also removed the ability to cancel an update whilst unzipping the files, as this would result
in a corrupted sphaira.nro install, which we don't want.
2024-12-21 19:44:43 +00:00
ITotalJustice 4a058d3caf disable install by default, enabled via advanced menu. disable web browser if applet. 2024-12-21 18:49:40 +00:00
ITotalJustice 986ffdcd9c remove option to set archive bit in filebrowser
removed as likely no one needs this feature, and an cause problems for users
that do not know what they're doing
2024-12-21 18:04:19 +00:00
ITotalJustice 97085ef282 add option in config to remove install warning prompt 2024-12-21 18:01:57 +00:00
ITotalJustice d02fbcf282 fix performance regression caused by #32
the issue isn't with the pr itself, however it did expose the lack of caching with the translation strings, it will
continue to search for strings, even if we already found them.
to solve this, i used a map to cache said strings
2024-12-21 17:31:19 +00:00
ITotalJustice 0edd7c400f add support for swedish translations (needed for pr merge) 2024-12-21 16:46:10 +00:00
ITotalJustice aa03256fd4 better naming for menu tabs (Fs -> Files, Apps, App -> Store)
fixes #30
2024-12-21 16:35:26 +00:00
ITotalJustice 8f1084b24f fix text bounds in option box
fixes #28
2024-12-21 16:32:36 +00:00
ITotalJustice 55c952a51f add stars in homebrew menu (hbmenu feature)
fixes #22
2024-12-21 16:30:32 +00:00
ITotalJustice dd6371997c fix core3 being pinned at 100% due to nxlink polling.
this was caused due to https://github.com/ITotalJustice/sphaira/commit/9966e57e1222727520dc48290d49ed034d5bc1f8
2024-12-21 01:21:45 +00:00
ITotalJustice 0570c14343 bump version for release 2024-12-20 11:17:15 +00:00
ITotalJustice 66f2171995 use localtime instead of gmtime
fixes #23
2024-12-18 17:51:08 +00:00
ITotalJustice e2d9db8928 fix appstore sort strings not being rendered 2024-12-18 00:28:59 +00:00
ITotalJustice 945d1f3ae6 add updater, remove white theme (it was unfished), remove more dead code, bump version for release 2024-12-18 00:04:27 +00:00
ITotalJustice 2db9b72416 improve fr translation (credit to @Battosai94)
see: https://github.com/ITotalJustice/sphaira/issues/2#issuecomment-2549628348
2024-12-17 21:12:26 +00:00
ITotalJustice 9b4710d386 show time in main menu, change battery % symbol to use a small version 2024-12-17 21:04:36 +00:00
ITotalJustice ecb2567757 add workflow 2024-12-17 20:05:33 +00:00
ITotalJustice b59a162473 fix not exiting to home menu whilst replacing hbmenu 2024-12-17 19:54:49 +00:00
ITotalJusticeandHoRy205 ef5ff520d1 Add files via upload (#11)
Corrected Japanese translation

Co-authored-by: HoRy205 <101063179+HoRy205@users.noreply.github.com>
2024-12-17 16:56:00 +00:00
ITotalJustice 433c2e220c fix overlapping text in fs
fixes #13
2024-12-17 16:21:14 +00:00
ITotalJustice 9966e57e12 option to install nro from fs, swap LR display, load translations locally, fix scrolling sound, add file name to rename swkdb
- reduce nxlink svcsleep to reduce latency between polling.
- translations can now be loaded from /config/sphaira/i18n/name.json, this is to help aid those creating translations.
- swap LR position in display. the fix is a hack, but it'll do for now.
- sound effects are now consistent throught the app.
- renaming a file will now show the current file name in swkbd, makes it easier to rename from config.ini.template -> config.ini
- removed some dead code that was unused.
- add credits to the readme.
- speed up playlog ini parsing by browsing the ini rather that doing a query for each entry.
2024-12-17 16:03:05 +00:00
ITotalJustice d063ffcb20 remove old theme entries, make "Back" be the default hovered option when installing forwarder 2024-12-16 22:51:58 +00:00
ITotalJustice 34a44f3717 fix cmake git version 2024-12-16 21:48:16 +00:00
ITotalJustice 0370e47f7f public release 2024-12-16 21:13:05 +00:00