Commit Graph

282 Commits

Author SHA1 Message Date
8e876d027b Remove most compiler warnings 2024-06-04 17:43:27 -04:00
f8fba122ac Update README 2024-06-04 17:28:43 -04:00
e09c33f0e8 BCSTM Player 2024-06-04 17:17:16 -04:00
8f676eafae Fix preview regression introduced in df4c81c 2024-06-04 16:34:20 -04:00
9860dec103 Ask on invalid zip if zip is badge file 2024-06-03 10:23:18 -04:00
1a01ba502f Add install badges from zip file 2024-06-03 00:58:07 -04:00
df4c81c96d Download SMDH files for badges
Thanks to ThemePlaza for providing these to make browser icons work
Also fixed badge previews by increasing tex size if the preview
image is larger than 512 pixel high
2024-06-02 20:51:39 -04:00
30833995d1 Add spanish translation
Also some minor badge changes

Co-authored-by: Tristanabs <76444200+Tristanabs@users.noreply.github.com>
2024-06-01 22:19:53 -04:00
b0db54e71a TP Badge Browser. Incomplete - see notes
TODO:

- Load icons for browser

- Fix previews (max tex size 512x512 and preview image 512x1024?
2024-05-31 12:05:18 -04:00
4d9cde01c4 Initial badges work
Additional cleanup probably necessary, some more feature work still in progress (zip files)
2024-05-30 15:45:57 -04:00
arth
970b3c9749 Small fixes on Portuguese (#308) 2024-05-21 11:15:56 -04:00
7035c416cf Properly free resources on invalid mime type 2024-05-20 21:33:46 -04:00
e498b3f24a Add libcurl for non-TP downloads 2024-05-20 21:31:24 -04:00
arth
016e7fd738 Added Portuguese translation (#307) 2024-05-13 15:48:26 -04:00
20f3c503ad Update browser to not use combos 2024-05-12 21:51:13 -04:00
eae7a2250e Fix no themes/splashes buttons 2024-05-12 20:01:09 -04:00
22492339a6 Failsafe to prevent negative scrolls 2024-05-12 19:41:54 -04:00
9b098f6935 Add missing string, fix preview bug in browser 2024-05-12 17:46:55 -04:00
cooolgamer
3c55868183 Added French translation 2024-05-12 16:46:57 -04:00
Alex Taber
a43cbcca74 UX Overhaul (#305)
* Fix bgm checking bug

* Converted install and menu options into button menus rather than combos

* Fix sort order

* Various touch screen changes so that most functions can be done via touch

 * Dim theme list when navigating menus

* Translation framework implemented

* bug when no themes loaded fixed

* Fix theme preview regression introduced in d037691
2024-05-12 14:24:43 -04:00
Théo B
546d459696 Performance Improvements
Pass theme list & its entries around by reference rather than copying them.
Fix bug in async icon loading that caused icons to be loaded multiple times.

Original PR by @LiquidFenrir
2024-05-10 17:43:47 -04:00
d1f3dbf06b Throw warning on mono audio install. 2024-05-08 17:21:46 -04:00
cdf30f3bea Throw error on failed parental validation.
Also use CFGU instead of CFG for reading restrictions
2024-05-07 21:46:06 -04:00
c6b6f560be Require PIN for browser if browser access restricted 2024-05-07 21:25:45 -04:00
64d65417fa Disable home button while theme is installing 2024-04-26 00:21:10 -04:00
b19343e238 Draw no home icon in theme plaza browser 2024-04-24 23:37:13 -04:00
ecf9dc63ce Disable home button on theme install 2024-04-24 23:25:20 -04:00
7e2191ad86 Add x-zip-compressed to acceptable mime types
Closes #287
2024-04-24 14:42:10 -04:00
Jan
d037691418 assemble a splash preview if none was found (#277) 2024-04-24 14:32:54 -04:00
6b89496566 Properly handle Unicode file names on download
Closes #303. May still need additional testing
to ensure everything works properly, but preliminary
testing passes.
2024-04-24 14:17:55 -04:00
cooolgamer
67fc17dddf Korean support (#290)
* Update themes.c

Addes KOR in dump themes

* Update fs.c

Added Kor support usable with This patch: https://github.com/ZeroSkill1/CTR-Hacking/tree/master/General-Hacking/Korean%20HOME%20Menu%20Theme%20Patch
2024-02-26 13:05:52 -05:00
Dylan G
adccc70cca Fixed useless 404 error when a remote preview has no BGM 2022-07-31 20:41:22 +01:00
LiquidFenrir
4a56a883fa make audio safer
- centralized stop function
- freeing the struct not from the thread while waiting on handle in it
- thread not detached
- maybe fixes hang on exit from HM in ndsp status check loop
2022-06-14 13:02:15 +02:00
LiquidFenrir
806d0033de fix multiple crashes
on exit:
- bad timing when the install checks threads run, could crash
- quitting through HOME when a bgm was previewed in the browser
on http get failure:
- the quit flag would be enabled, but the browser wouldn't honour it
2022-06-05 11:49:09 +02:00
Théo B
1ed6c46644 fix dumping official body and bgm, and double free
fixes #268
2022-06-03 21:40:23 +02:00
Dylan G
a0c16a64ec Search strings now escaped properly (fixes #267) 2022-05-30 12:04:18 +01:00
Dylan G
7f7fdc010a Fixed faulty FS error when a filename contains a / 2022-05-30 10:43:12 +01:00
Dylan G
6ba1ef111e Merge pull request #262 from LiquidFenrir/better-dump
add ability to dump all your official themes
2022-02-26 16:02:55 +00:00
Dylan G
83071d3734 Merge pull request #250 from LiquidFenrir/shuffle-fix
make shuffle work on consoles that never used it
2022-02-26 15:47:11 +00:00
LiquidFenrir
4e2bea53c1 add ability to dump all your official themes
icon and name get extracted from the dlc data
requires libctru from commit 5f13628dac75206f0c97d29a7427ce8284d910f1 or older (added the am commands necessary to find the dlc data)
Makefile changed to reflect the macro change in unreleased libctru
2021-12-22 00:00:42 +01:00
Dylan G
18cb5c616f Correctly handle cases where files already exist on the filesystem.
Also: patched a bug wherein the filename filter was acting up, transforming `file.zip` to `file-zip.zip`, for example.
2021-06-17 01:43:50 +01:00
Dylan G
3f2e4c03f3 Constness 2021-06-17 01:37:33 +01:00
02c3e617ae Handle when content-disposition header is not present 2021-06-14 13:03:57 -04:00
LiquidFenrir
6161874d07 fix a shuffle weirdness (10 - N official ones)
from anemone, when setting a N theme shuffle, then a single theme you could only set 10 - N official themes on shuffle afterwards (and even then, it would fail and reset the theme stuff, leaving you able to set however many official themes on shuffle you wanted)
this skips the failing step
2021-04-03 21:55:52 +02:00
LiquidFenrir
cea9b8655a make shuffle work on consoles that never used it 2021-03-31 15:27:58 +02:00
Dylan G
7745530764 Fixed 4720a499 (TP returns 303 currently, not 404) => handle 303 well(?); pushed some code around 2021-03-11 13:47:24 +00:00
Dylan G
0bab0f6700 Patched httpc error message to actually be readable on console; also provides Result code 2021-03-11 12:34:03 +00:00
Alex Taber
e4e0118c1a Prevent out of bounds scrolling in the browser 2021-01-01 23:51:51 -05:00
Dylan G
accdaaed2a Reduced code duplication 2020-12-31 21:28:10 +00:00
Alex Taber
3fb90e8197 Remove unused variables 2020-12-24 19:03:47 -05:00