Go to file
Selver 34f6c4dc4e
Additional comment for fsFsSetArchiveBit()
Describe why HOS might have done this.  While the below is conjecture, the effect matches the comment added to the file.

FAT32 has a (4GiB-1) byte limit per file, but they had to support that media.
They likely wanted to avoid forcing game makers to partition game files.
If the above is true, then this hack could make sense....

The directory, rather than being a "real" directory, is storing the file in multiple parts.

Example (ignoring actual hash-based file names that HOS uses for simplicity):
* The game ships with a file named "FOO.DAT" that is 6GB in size.
* HOS does not attempt to create a 6GB file on FAT32 media (which would fail)
* HOS creates a directory named "FOO.DAT" instead.
* Inside that directory, HOS stores the first 2GB as "FileChunk01"
* Inside that directory, HOS stores the second 2GB portion as "FileChunk02"
* Inside that directory, HOS stores the final 2GB of the data as "FileChunk03"

Unfortunately, by using the archive bit, it can cause problems, especially when an OS (ahem... MacOS) or other utility changes the archive bit settings on directories....
2018-11-30 13:01:15 -08:00
nx Additional comment for fsFsSetArchiveBit() 2018-11-30 13:01:15 -08:00
.doozer.json CI: remove switch-examples from build 2018-09-15 21:04:58 +02:00
.gitignore Start doxygen bringup, with some miscellaneous cleanup 2018-02-10 22:40:11 +01:00
Changelog.md Release v1.6.0 2018-11-28 02:09:20 +01:00
CODESTYLE.md Amend codestyle 2018-02-26 03:16:54 +01:00
LICENSE.md Start doxygen bringup, with some miscellaneous cleanup 2018-02-10 22:40:11 +01:00
Makefile base_tools & base_rules move to devkitA64 2018-01-28 03:09:43 +01:00
README.md Updated wiki URLs. 2018-10-11 21:44:51 -04:00

Nintendo Switch AArch64-only userland library.

Based on libctru.

Build status

Install instructions

See Switchbrew.