libnx/nx/include/switch/services
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
..
acc.h Added accountGetUserCount and accountListAllUsers (#103) 2018-07-01 16:34:21 -04:00
apm.h services/: Add Doxygen file headers; document sm.h 2018-02-10 22:40:11 +01:00
applet.h Expose appletSetFocusHandlingMode 2018-11-08 19:27:56 -05:00
auddev.h Added auddev and AudioDeviceName. 2018-11-02 16:04:09 -04:00
audin.h Audio input implementation and fixes (#60) 2018-03-04 12:20:31 -05:00
audout.h Audio input implementation and fixes (#60) 2018-03-04 12:20:31 -05:00
audren.h Determine whether to use AUDREN_REVISION_1-4 via the sysver, instead of hard-coding it for the 3.0+ rev. Updated comments and added AUDREN_REVISION_5/AUDREN_REVISION_6 defines. 2018-11-17 11:43:24 -05:00
bpc.h Add bpcGetSleepButtonState 2018-11-14 19:52:40 -05:00
bsd.h Add documentation to bsd.h and sfdnsres.h, etc. 2018-02-27 19:14:44 +01:00
csrng.h Implement CSRNG services 2018-05-07 17:04:59 +02:00
fatal.h fatal: Implement fatalWithContext 2018-11-14 19:52:40 -05:00
fs.h Additional comment for fsFsSetArchiveBit() 2018-11-30 13:01:15 -08:00
fsldr.h Resolve trivial -Wmissing-prototypes warnings 2018-09-14 19:07:34 +02:00
fspr.h Add support for fsp-pr. 2018-05-07 17:04:59 +02:00
gpio.h Add fs gamecard attribute retrieve commands 2018-11-14 19:52:40 -05:00
hid.h Improve documentation of hidMergeSingleJoyAsDualJoy 2018-11-29 11:09:14 -05:00
hwopus.h Added support for hwopus multistream. Minor adjustments in hwopus.h. 2018-11-06 15:10:54 -05:00
i2c.h Add fs gamecard attribute retrieve commands 2018-11-14 19:52:40 -05:00
irs.h Irs stylefix 2018-03-10 14:48:15 +01:00
lbl.h Add lblSwitchBacklightOn and lblSwitchBacklightOff 2018-11-14 19:52:40 -05:00
ldr.h Implement all Loader Services. 2018-05-07 17:04:59 +02:00
lr.h Revise LR API to use actual LR function names 2018-05-07 17:04:59 +02:00
ncm.h Add ncmContentStorageGetPlaceHolderPath and ncmContentStorageCleanupAllPlaceHolder 2018-07-27 18:14:43 +02:00
nifm.h Added nifm service (#110) 2018-06-07 18:00:51 -04:00
ns.h Resolve trivial -Wmissing-prototypes warnings 2018-09-14 19:07:34 +02:00
nv.h nv: add cloned session handle used with certain requests; add Ioctl2 2018-09-14 02:15:24 +02:00
pcv.h Add pcvSetVoltageEnabled and pcvGetVoltageEnabled (#208) 2018-11-19 10:37:59 -05:00
pl.h Added comment regarding PlSharedFontType_NintendoExt. 2018-10-09 11:25:25 -04:00
pm.h Added pmshellGetApplicationPid(). 2018-10-04 18:44:45 -04:00
psc.h psc: Add PmModule support (#200) 2018-11-03 21:40:15 -04:00
psm.h Add enum for PsmBatteryVoltageState 2018-11-14 19:52:40 -05:00
set.h Add SetSysFlag_RequiresRunRepairTimeReviser 2018-11-14 19:52:40 -05:00
sfdnsres.h Add documentation to bsd.h and sfdnsres.h, etc. 2018-02-27 19:14:44 +01:00
sm.h Refactor service IPC to support domains. 2018-10-16 17:56:39 -04:00
smm.h Implement sm:m. 2018-05-04 01:50:22 +02:00
spl.h Implement SPL services 2018-05-07 17:04:59 +02:00
spsm.h Add spsm wrapper. 2018-11-14 19:52:40 -05:00
time.h Added support for timezones, hence localtime() will now return actual localtime. Added timeToCalendarTimeWithMyRule and TimeCalendarTime/TimeCalendarAdditionalInfo, which are used for timezones support. 2018-10-05 19:59:24 -04:00
usb.h Use PACKED for usb_endpoint_descriptor and usb_config_descriptor. 2018-11-29 17:25:46 -05:00
usbds.h Moved usb code specific to usbds into seperate .c/.h. 2018-11-28 17:34:53 -05:00
vi.h viGetDisplayVsyncEvent: return an Event instead of a raw handle 2018-08-31 13:05:22 +02:00