Commit Graph

325 Commits

Author SHA1 Message Date
Alex Taber
c801e28523 Prevent free(NULL) in free_icons 2020-12-24 17:13:06 -05:00
Alex Taber
c9e1420a00 re-add s upport for themes without an SMDH
Also change theme dump random color algo
2020-12-24 16:58:06 -05:00
Dylan G
bc2f4ec581 Finished up software keyboard input for filenames in http_get.
Closes #220.
Worth noting that the callback may be shared between this whatever @astronautlevel2 is working on (theme dumping, I think).
2020-12-24 20:01:38 +00:00
Alex Taber
9592d76c2c Fix color generation 2020-12-24 14:52:08 -05:00
Alex Taber
a266203a92 Add theme dump functionality 2020-12-24 14:34:56 -05:00
Alex Taber
17afdbaae2 Fix regression in c40696e982
Extra menu works again
2020-12-23 19:59:18 -05:00
Alex Taber
f6d7446eba Update themeplaza url 2020-12-23 18:46:03 -05:00
Alex Taber
c49129d408 Remove trello link
We don't use trello for feature tracking, link is very outdated
2020-12-23 17:37:29 -05:00
Alex Taber
f9a2ae5190 Fix RGB previews having inverted colors
Closes #227
2020-12-23 17:30:55 -05:00
Alex Taber
573b7d35e6 Fix potential hang in QR reader 2020-12-23 16:51:57 -05:00
a2b6eb94e4 Fix regressions introduced in 1c2e562dd6 2020-12-23 16:20:49 -05:00
Théo B
95ff2dd3ba Memory leak fix and camera multithreading safety improvement (#239)
* memory leak fix and attempt at optimizing space

* camera rework

try to use better locking algorithm (MRSW lock on wikipedia)

* add time print (toggleable) and stuff

remove old mixed qr thingss from main

* remove the dumb 3 bytes saving

* remove useless time measure code

* forgot to close the stop event handle

* fix memory leak when loading icon from smdh

* fix entry path on folders

optimization using memcpy cause it to have the "/info.smdh" when the entry is a folder. simply remove that with a memset to 0.

Co-authored-by: Alex Taber <astronautlevel2@users.noreply.github.com>
2020-12-21 22:31:38 -05:00
Dylan G
1c2e562dd6 Networking rework (#240)
* Began refactoring http_get. Still a few cases to handle, but it works.

* Introduced error enum; handle error 406; handle a misbehaving server; redirect_url leaked memory (L888)

* Allowed calls to http_get to pass NULL as acceptable_mime_types

* Removed status_code from header struct; eventually planning to move most of parse_header's logic back to http_get, so this makes sense

* Moved some more logic back into http_get
Note: currently behaves weirdly with some QR codes, including but probably not limited to ones pointing to TinyURL.

* Handle redirects correctly; other rearrangements

* Formatting

* Handle HTTP 303 See Other correctly

* Removed "Download failed" error in camera.c due to all related failures being handled in http_get

* Fixed missing loading bar; started working on unchunked download

* Added unchunked download

* Reintroduced the download progress bar, rolled back to always doing chunked download

* URL length caps at 2083 chars

* Slightly more efficient

* Correctly handle incorrect filesize header
TODO: reorder clauses to remove the goto?

* Fixed illegal characters, removed unnecessary logic (technically a regression, as we always have to realloc now)

* Finally finished up status code handling. Fixed a memory leak when the server fails conneg.
2020-12-21 21:11:11 -05:00
Dylan G
9cb13f6be1 Fix #326
Typo in button string.
2020-11-18 19:37:46 +00:00
6a51b4eae5 Fix misc. QR code bugs
Close data->started properly, don't double close data->cancel
Should fix the QR code hang
2020-06-22 12:27:14 -04:00
14d9e99b7d Properly set body_size
Fix regression in 36e8104dbb
2020-06-17 14:09:23 -04:00
36e8104dbb Automatically set BGM flag to enabled when doing a BGM install 2020-06-16 18:45:59 -04:00
6bafa6a22e Add lz decompression code
Also add byte search code
2020-06-15 23:10:30 -04:00
Dylan G
408b2903f2 Finally void-out textlen in the callbacks (no more compiler warnings) 2020-06-15 23:11:28 +01:00
fbca873f52 Reset cursor on page load (Closes #206) 2020-06-13 15:29:57 -04:00
d1a821edf5 Merge branch 'master' of github.com:astronautlevel2/Anemone3DS 2020-06-12 12:03:34 -04:00
a4532b0f3d Various fixes
Stop loading themes missing smdh files - this was causing scroll crashes due to how the icon loading code was working. In the future we will include a message about how themes are skipped due to lacking smdh files. Invalid zips also caused the same issue and are also now being properly ignored

Fix memory leak in the zip file loading code
2020-06-12 12:02:13 -04:00
Dylan G
f819f9d452 No longer assume that a QR filename contains a quote (Fixes #204) 2020-06-12 16:27:40 +01:00
2c2c7f4b33 Fix double free 2020-06-11 21:24:01 -04:00
b75d1acb21 Fix crash caused by quirc overflowing the 3ds stack in some instances 2020-06-11 20:41:17 -04:00
e8d0a2eb27 Fix similar (but unrelated to the previous) race condition 2020-06-11 14:34:14 -04:00
f4217888ce Fix bug caused by race between theme thread & QR reader UI thread 2020-06-11 13:48:34 -04:00
Dylan G
d358dd134e Updated quirc to v1.1 (2019); patched to remove compiler warnings 2020-06-03 02:13:07 +01:00
Dylan G
ca9da9d297 Update CONTRIBUTORS.md 2020-06-01 17:18:02 +01:00
Dylan G
71a4cde22e 64-bit makerom binaries now provided officially 2020-06-01 17:14:16 +01:00
Dylan G
f7404cf162 Patched memory leak (closes #217) 2020-06-01 15:02:10 +01:00
Dylan G
ef774ce0b4 Now compiles under GCC 10 (GCC 10 now defaults to -fno-common) 2020-05-31 17:45:05 +01:00
Wrong
193feedf25 Very minor fix for libctru 1.6.0 compatibility (#213) 2019-11-01 15:46:32 -04:00
Dylan G
ddfc39db56 matt changed his github username 2019-07-06 17:31:21 +01:00
9e378b5059 Fix camera initialization on CTR cameras 2018-08-20 18:38:04 -04:00
312fbd5fbf Fixed QR download text 2018-08-19 20:46:55 -04:00
d3e1b746cd Various improvements to QR scanner
* Improve QR scanner initialization time
* Fix race condition with QR scanner and button spamming
* Don't show black screen before QR scanner has loaded
* Show loading message for QR scanner
2018-07-26 22:02:54 +03:00
TurdPooCharger
09de17729b Sharpen banner edges (#187)
Pixels along the parameter had their tranparency removed and colors solidified with the blue backdrop. Nearly invisible buffer edges of 1-2px were added for rendering compensation.

12x fold size increase due to *.png saved as uncompressed. Testing revealed color blurring with compressed *.png.

Information originally posted in issue #183.
2018-07-24 17:49:40 +03:00
9dc3f4c533 Change blue back to older blue color, add more contrast to red 2018-07-23 15:32:06 +03:00
0d1ab5ed95 Properly update installed splashes 2018-07-23 15:09:16 +03:00
Alex Taber
c40696e982 Citro2d switch (#175)
* Switch from pp2d to citro2d

* Fix various bugs by updating libarchive

* Begin work on translation infrastructure

* Switch to libpng for various improvements

* Fixed race condition in icon scrolling

* Use spritesheets to load sprites marginally faster and use less memory

* Various Readme fixes

* Huge improvements to QR reader speed and screen tearing

* Don't try to preview themes/splashes when there are none

* Prevent playing audio when ndspInit() fails

* Don't wait for audio to load before displaying preview

* Fix bug when shuffle themes didn't have BGM

* Fix bug caused by files not being zeroed out when created
2018-07-22 21:22:23 +03:00
Helloman892
aa3a00cedc Patched quirc to finally rid ourselves of those compiler warnings 2018-05-16 19:20:27 +01:00
Helloman892
89c8a4fae2 amended README 2018-05-16 01:22:16 +01:00
5fd86bf7af Change TitleID to not conflict with games (Closes #160) 2018-05-15 17:12:53 -04:00
90d316bd06 Revert "Remove deprecated C3D functions. (#164)"
This reverts commit 71ecdd9aa5.
2018-05-14 13:06:08 -04:00
LiquidFenrir
6d65770840 fix #167
shouldnt have copy pasted blindly
2018-05-14 18:53:08 +02:00
Joel
71ecdd9aa5 Remove deprecated C3D functions. (#164)
* Fix home button being usable in the browser (closes 163)

* Replace deprecated C3D functions

This fix is just a placeholder until C2D arrives.
2018-05-13 13:54:43 -04:00
LiquidFenrir
db8f9e81e8 Fix home button being usable in the browser (closes #163) 2018-05-13 19:45:42 +02:00
83887bcb8e Add libvorbisdec to deps (closes #162) 2018-05-13 10:11:10 -04:00
fa37bcec99 Don't try and play mono ogg files 2018-05-13 09:03:16 -04:00