106 Commits

Author SHA1 Message Date
Pk11
77fc7af2f2 Use macro for UTF-8 byte count
Makes it more clear why all of the buffers are being multiplied by 4

Fix UTF-8 bytesize macro

Before UTF_BUFFER_BYTESIZE(str_width - 10)] would multiply the 10, not the whole number, by UTF_MAX_BYTES_PER_RUNE

Do (rune_count + 1) * 4 in UTF-8 bytesize macro

Fix Resize/Truncate String snprintf size

Before it would break if the last character was multi-byte
2021-11-14 22:14:53 +01:00
Pk11
b366200d4b Switch to a RIFF font format
Fix height of ラ character

I accidentally made it 1px too tall before

Add Cyrillic to default font

Make Я more like latin R

Right after I commit, looking at my screenshot I notice I forgot to tweak the Я to be more angled like this font's latin R...

Improve the default font's Kana

derp fix

Properly handle invalid UTF-8

Fix conversion PBMs with non-byte aligned rows

Rename font extension to .frf

For Font RiFf

Re-add PBM font support

Default converting to CP-437 and try guess size

Revert "Default converting to CP-437 and try guess size"

Reverts 2c9a47d224b28cbb51a3ee335fd9970265201b72 as I think the old behaviour works better given PBM font support being kept

Re-add mapping file for CP-437

Automatically use mapping file with same name as image

ex. for "font_6x10.pbm" it will use "font_6x10.txt" in the same directory
2021-11-14 22:13:55 +01:00
Pk11
13eb4f8869 Proper handling of UTF-8
Note: This commit may be slightly broken, I'm just splitting up it and the next one at the end.
2021-11-14 22:13:32 +01:00
BuildTools
e042886db4 add user-facing sha1 support 2021-10-09 11:58:47 +02:00
d0k3
4dc96d37e8 Fix #720 2021-07-23 14:01:19 +02:00
d0k3
fd8c5d1897 Show title id & game icon in file handler menu 2021-03-18 22:44:33 +01:00
d0k3
ddfdf81cf7 Combine & improve game info and CIA/title checker 2021-03-11 20:24:39 +01:00
d0k3
8fa85437dd Added ability to dump tickets in title manager 2021-03-08 23:52:55 +01:00
d0k3
2cd6acb31e Enabled title checker tool in Title Manager 2021-03-08 18:35:49 +01:00
d0k3
71e3b6f73c Trimming functionality for GBA cart dumps 2021-02-22 16:41:21 +01:00
d0k3
c31737c257 Title info and CIA metadata handling for encrypted CIA/CDN content 2021-02-20 12:21:40 +01:00
d0k3
ab4316fd4e Prevent titleentry deletion in title manager 2021-02-18 18:55:36 +01:00
d0k3
24195c319a Install, build CIA, verify handling for TWL CDN content 2021-02-18 18:34:20 +01:00
d0k3
8114a0bd26 Higher level warning for editing 0:/Nintendo 3DS/ folder 2021-02-15 17:58:59 +01:00
d0k3
7620310b73 Build CIA and verify handling for TADs 2021-02-12 15:02:55 +01:00
d0k3
667a1bf2c0 Install, verify, info handling for tickets 2021-02-06 14:47:40 +01:00
d0k3
e41b098843 Misc code improvements 2021-02-05 13:16:01 +01:00
d0k3
58fb9913d5 Fix possible overwriting of memory in vff.c 2021-02-01 18:59:55 +01:00
d0k3
899c8a8816 Updated mounted ticket.db categories
Fixes #641
2021-01-31 14:29:48 +01:00
d0k3
7f6f6db410 Add title manager (replaces title search) 2020-12-24 15:53:59 +01:00
Gabriel Marcano
d010f2858b Remove trailing white space
- Removed trailing whitespace from all source code files (.c, .h. and
   .s) and the README.md
2020-08-26 23:01:58 +02:00
d0k3
896d548851 Additional functionality for .tie files 2020-08-20 19:43:52 +02:00
d0k3
f7c229b424 Properly handle TWL saves when installing 2020-08-20 19:43:52 +02:00
aspargas2
e5ffa885b6 fix directly remounting the file which is already mounted 2020-08-20 19:43:51 +02:00
d0k3
f0ad45dd60 Basic uninstaller support for title.db entries 2020-08-20 19:43:51 +02:00
d0k3
18e6d9f0db Basic support for handling title.db entries
"Show title info"
2020-08-20 19:43:51 +02:00
d0k3
8863979a99 Merge branch 'thumb' 2020-08-02 15:43:28 +02:00
aspargas2
e744be504b perform DISA/DIFF cmac fixing automatically upon unmounting 2020-08-02 15:40:41 +02:00
d0k3
d8aeb056cb Fix CMD & NCSD handling 2020-08-02 15:40:41 +02:00
d0k3
d2c47b7977 Allow installation of game files
Should work for NCCH, NCSD, CIA, TMD from NUS/CDN and DSi eShop titles in NDS format
2020-08-02 15:40:26 +02:00
d0k3
2791b42f6e Fix an exception for big file searches 2020-07-24 11:02:07 +02:00
Wolfvak
929cc7fdcf better hints to reduce compiled size by a few kb
mostly just added static const to constant arrays/buffers
2020-07-23 13:46:42 -03:00
aspargas2
519855de5b fix write permission bypass bug
attempting to open a file in a bdri mount for reading only which did not exist but had a valid name would create the file without ever unlocking appropriate write permissions
2020-06-30 19:22:18 +02:00
aspargas2
c70546d5ca implement virtual mounting of BDRI files 2020-06-30 19:22:18 +02:00
luigoalma
6541e52f05 Reinforcing alignment to buffer size 2020-03-28 07:05:42 -03:00
luigoalma
d27cfc71e1 Indentation fixes
Indentation fixes everywhere
(mostly anyway under arm9/source/)
And some other tab to spaces
2020-03-28 07:05:42 -03:00
luigoalma
4e04849860 Support for variable sized tickets
Except for cia building or loading cia just yet.
Added more checks on ticket content index, mainly due to having effects
in the ticket format itself, and are unknown still.
Ability to determine ticket size.
Verify signature with ticket's proper size.
Changes to use the new Ticket struct with the flexible array member.
2020-03-28 07:05:42 -03:00
Wolfvak
e4b98e0932 drop in replacement for old BEAT code, not yet interactive 2020-01-02 21:08:45 +01:00
Wolfvak
9f50d2f03c Fix #573 2020-01-02 21:08:44 +01:00
d0k3
e446bdbfa5 Update FatFS R0.13c -> R0.14 2020-01-02 21:08:44 +01:00
d0k3
1889f4fd57 Simplify fsdrive code 2019-10-28 14:16:55 -03:00
d0k3
f184ad5701 Fix #554 2019-10-28 14:16:55 -03:00
d0k3
f24db1442e Fix #543 2019-10-12 17:14:16 +02:00
Balint Kovacs
fa741b265b Write support for NTR saves
Why does this work? We are writing flash memories without erasing them,
and writing pages without regard to alignment. Yet it works?
2019-10-11 16:24:08 +02:00
aspargas2
f8b9332728 implement vdisadiff 2019-09-29 19:53:30 +02:00
Wolfvak
c8a7c63963 fix unicode FAT labels (#508) 2019-09-29 19:53:28 +02:00
Wolfvak
d6c6f56526 fix compilation warnings due to unaligned packed structures in newer gcc 2019-09-29 19:53:27 +02:00
Bálint Kovács
8f588fa8bc Fix crashes when opening extensionless files. (#503)
* Set extension to an empty string when there's none
2019-07-05 23:35:41 -03:00
d0k3
9a7ff738be Show "NOLABEL" for unlabeled SDs 2019-06-30 23:51:15 +02:00
d0k3
87d4152d4e Add handling for SD / TWLN & DLC CMD CMACs
Fixes #340
2019-06-10 16:30:40 +02:00