From: TravisCI-DocBuilder Date: Thu, 19 Nov 2015 22:09:44 +0000 (+0000) Subject: Doc generated from commit b21fa8a57f5af9881877efb1ee7eec7facbd9b7e X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=019e1fa6978b4659042510e0dcaac1f68da28727;p=corbenik%2Fctrulib.git Doc generated from commit b21fa8a57f5af9881877efb1ee7eec7facbd9b7e --- diff --git a/3ds_8h.html b/3ds_8h.html index 461415d..da9fe53 100644 --- a/3ds_8h.html +++ b/3ds_8h.html @@ -112,10 +112,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); #include <3ds/services/apt.h>
#include <3ds/services/cam.h>
#include <3ds/services/cfgnor.h>
-#include <3ds/services/cfgu.h>
+#include <3ds/services/cfgu.h>
#include <3ds/services/csnd.h>
#include <3ds/services/dsp.h>
-#include <3ds/services/fs.h>
+#include <3ds/services/fs.h>
#include <3ds/services/gspgpu.h>
#include <3ds/services/gsplcd.h>
#include <3ds/services/hid.h>
diff --git a/3ds_8h_source.html b/3ds_8h_source.html index 33476e3..0f2b3f2 100644 --- a/3ds_8h_source.html +++ b/3ds_8h_source.html @@ -122,10 +122,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
30 #include <3ds/services/apt.h>
31 #include <3ds/services/cam.h>
32 #include <3ds/services/cfgnor.h>
-
33 #include <3ds/services/cfgu.h>
+
33 #include <3ds/services/cfgu.h>
34 #include <3ds/services/csnd.h>
35 #include <3ds/services/dsp.h>
-
36 #include <3ds/services/fs.h>
+
36 #include <3ds/services/fs.h>
37 #include <3ds/services/gspgpu.h>
38 #include <3ds/services/gsplcd.h>
39 #include <3ds/services/hid.h>
@@ -235,6 +235,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
DSP Service to access the DSP processor commands (sound)
CFGNOR service.
Service API.
+
Filesystem Services.
NEWS (Notification) service.
IRRST service.
PM (Process Manager) service.
@@ -256,6 +257,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
SDMC driver.
AC service.
MIC (Microphone) service.
+
CFGU (Configuration) Service.
SOC service for sockets communications.
3ds stdio support.
Y2R service for hardware YUV->RGB conversions.
diff --git a/apt_8h.html b/apt_8h.html index f654d5c..263e8a1 100644 --- a/apt_8h.html +++ b/apt_8h.html @@ -2040,7 +2040,7 @@ Variables

Processes the current APT status.

Generally used within a main loop.

Returns
Whether the application is closing.
-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
diff --git a/cfgu_8h.html b/cfgu_8h.html new file mode 100644 index 0000000..aaea8b9 --- /dev/null +++ b/cfgu_8h.html @@ -0,0 +1,558 @@ + + + + + + +libctru: include/3ds/services/cfgu.h File Reference + + + + + + + + + + +
+
+ + + + + + +
+
libctru +
+
+
+ + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
cfgu.h File Reference
+
+
+ +

CFGU (Configuration) Service. +More...

+ +

Go to the source code of this file.

+ + + + + + + + +

+Enumerations

enum  CFG_Region {
+  CFG_REGION_JPN = 0, +
+  CFG_REGION_USA = 1, +
+  CFG_REGION_EUR = 2, +
+  CFG_REGION_AUS = 3, +
+  CFG_REGION_CHN = 4, +
+  CFG_REGION_KOR = 5, +
+  CFG_REGION_TWN = 6 +
+ }
 Configuration region values. More...
 
enum  CFG_Language {
+  CFG_LANGUAGE_JP = 0, +
+  CFG_LANGUAGE_EN = 1, +
+  CFG_LANGUAGE_FR = 2, +
+  CFG_LANGUAGE_DE = 3, +
+  CFG_LANGUAGE_IT = 4, +
+  CFG_LANGUAGE_ES = 5, +
+  CFG_LANGUAGE_ZH = 6, +
+  CFG_LANGUAGE_KO = 7, +
+  CFG_LANGUAGE_NL = 8, +
+  CFG_LANGUAGE_PT = 9, +
+  CFG_LANGUAGE_RU = 10, +
+  CFG_LANGUAGE_TW = 11 +
+ }
 Configuration language values. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

+Result cfguInit (void)
 Initializes CFGU.
 
+void cfguExit (void)
 Exits CFGU.
 
Result CFGU_SecureInfoGetRegion (u8 *region)
 Gets the system's region from secure info. More...
 
Result CFGU_GenHashConsoleUnique (u32 appIDSalt, u64 *hash)
 Generates a console-unique hash. More...
 
Result CFGU_GetRegionCanadaUSA (u8 *value)
 Gets whether the system's region is Canada or USA. More...
 
Result CFGU_GetSystemModel (u8 *model)
 Gets the system's model. More...
 
Result CFGU_GetModelNintendo2DS (u8 *value)
 Gets whether the system is a 2DS. More...
 
Result CFGU_GetCountryCodeString (u16 code, u16 *string)
 Gets a string representing a country code. More...
 
Result CFGU_GetCountryCodeID (u16 string, u16 *code)
 Gets a country code ID from its string. More...
 
Result CFGU_GetConfigInfoBlk2 (u32 size, u32 blkID, u8 *outData)
 Gets a config info block. More...
 
Result CFGU_GetSystemLanguage (u8 *language)
 Gets the system's language. More...
 
+

Detailed Description

+

CFGU (Configuration) Service.

+

Enumeration Type Documentation

+ +
+
+ + + + +
enum CFG_Language
+
+ +

Configuration language values.

+ + + + + + + + + + + + + +
Enumerator
CFG_LANGUAGE_JP  +

Japanese.

+
CFG_LANGUAGE_EN  +

English.

+
CFG_LANGUAGE_FR  +

French.

+
CFG_LANGUAGE_DE  +

German.

+
CFG_LANGUAGE_IT  +

Italian.

+
CFG_LANGUAGE_ES  +

Spanish.

+
CFG_LANGUAGE_ZH  +

Simplified Chinese.

+
CFG_LANGUAGE_KO  +

Korean.

+
CFG_LANGUAGE_NL  +

Dutch.

+
CFG_LANGUAGE_PT  +

Portugese.

+
CFG_LANGUAGE_RU  +

Russian.

+
CFG_LANGUAGE_TW  +

Traditional Chinese.

+
+ +
+
+ +
+
+ + + + +
enum CFG_Region
+
+ +

Configuration region values.

+ + + + + + + + +
Enumerator
CFG_REGION_JPN  +

Japan.

+
CFG_REGION_USA  +

USA.

+
CFG_REGION_EUR  +

Europe.

+
CFG_REGION_AUS  +

Australia.

+
CFG_REGION_CHN  +

China.

+
CFG_REGION_KOR  +

Korea.

+
CFG_REGION_TWN  +

Taiwan.

+
+ +
+
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
Result CFGU_GenHashConsoleUnique (u32 appIDSalt,
u64hash 
)
+
+ +

Generates a console-unique hash.

+
Parameters
+ + + +
appIDSaltSalt to use.
hashPointer to output the hash to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result CFGU_GetConfigInfoBlk2 (u32 size,
u32 blkID,
u8outData 
)
+
+ +

Gets a config info block.

+
Parameters
+ + + + +
sizeSize of the data to retrieve.
blkIDID of the block to retrieve.
outDataPointer to write the block data to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result CFGU_GetCountryCodeID (u16 string,
u16code 
)
+
+ +

Gets a country code ID from its string.

+
Parameters
+ + + +
stringString to use.
codePointer to output the country code to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result CFGU_GetCountryCodeString (u16 code,
u16string 
)
+
+ +

Gets a string representing a country code.

+
Parameters
+ + + +
codeCountry code to use.
stringPointer to output the string to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result CFGU_GetModelNintendo2DS (u8value)
+
+ +

Gets whether the system is a 2DS.

+
Parameters
+ + +
valuePointer to output the result to. (0 = yes, 1 = no)
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result CFGU_GetRegionCanadaUSA (u8value)
+
+ +

Gets whether the system's region is Canada or USA.

+
Parameters
+ + +
valuePointer to output the result to. (0 = no, 1 = yes)
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result CFGU_GetSystemLanguage (u8language)
+
+ +

Gets the system's language.

+
Parameters
+ + +
languagePointer to write the language to. (see CFG_Language)
+
+
+
Examples:
get_system_language/source/main.c.
+
+
+
+ +
+
+ + + + + + + + +
Result CFGU_GetSystemModel (u8model)
+
+ +

Gets the system's model.

+
Parameters
+ + +
modelPointer to output the model to. (0 = O3DS, 1 = O3DSXL, 2 = N3DS, 3 = 2DS, 4 = N3DSXL)
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result CFGU_SecureInfoGetRegion (u8region)
+
+ +

Gets the system's region from secure info.

+
Parameters
+ + +
regionPointer to output the region to. (see CFG_Region)
+
+
+ +
+
+
+ + + + diff --git a/cfgu_8h_source.html b/cfgu_8h_source.html index 233a930..dba3b90 100644 --- a/cfgu_8h_source.html +++ b/cfgu_8h_source.html @@ -90,106 +90,142 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
cfgu.h
-
1 #pragma once
-
2 
-
3 /// Configuration region values.
-
4 typedef enum
-
5 {
-
6  CFG_REGION_JPN = 0, ///< Japan
-
7  CFG_REGION_USA = 1, ///< USA
-
8  CFG_REGION_EUR = 2, ///< Europe
-
9  CFG_REGION_AUS = 3, ///< Australia
-
10  CFG_REGION_CHN = 4, ///< China
-
11  CFG_REGION_KOR = 5, ///< Korea
-
12  CFG_REGION_TWN = 6, ///< Taiwan
-
13 } CFG_Region;
-
14 
-
15 /// Configuration language values.
-
16 typedef enum
-
17 {
-
18  CFG_LANGUAGE_JP = 0, ///< Japanese
-
19  CFG_LANGUAGE_EN = 1, ///< English
-
20  CFG_LANGUAGE_FR = 2, ///< French
-
21  CFG_LANGUAGE_DE = 3, ///< German
-
22  CFG_LANGUAGE_IT = 4, ///< Italian
-
23  CFG_LANGUAGE_ES = 5, ///< Spanish
-
24  CFG_LANGUAGE_ZH = 6, ///< Simplified Chinese
-
25  CFG_LANGUAGE_KO = 7, ///< Korean
-
26  CFG_LANGUAGE_NL = 8, ///< Dutch
-
27  CFG_LANGUAGE_PT = 9, ///< Portugese
-
28  CFG_LANGUAGE_RU = 10, ///< Russian
-
29  CFG_LANGUAGE_TW = 11, ///< Traditional Chinese
-
30 } CFG_Language;
-
31 
-
32 /// Initializes CFGU.
-
33 Result cfguInit(void);
-
34 
-
35 /// Exits CFGU.
-
36 void cfguExit(void);
-
37 
-
38 /**
-
39  * @brief Gets the system's region from secure info.
-
40  * @param region Pointer to output the region to. (see @ref CFG_Region)
-
41  */
-
42 Result CFGU_SecureInfoGetRegion(u8* region);
-
43 
-
44 /**
-
45  * @brief Generates a console-unique hash.
-
46  * @param appIDSalt Salt to use.
-
47  * @param hash Pointer to output the hash to.
-
48  */
-
49 Result CFGU_GenHashConsoleUnique(u32 appIDSalt, u64* hash);
-
50 
-
51 /**
-
52  * @brief Gets whether the system's region is Canada or USA.
-
53  * @param value Pointer to output the result to. (0 = no, 1 = yes)
-
54  */
-
55 Result CFGU_GetRegionCanadaUSA(u8* value);
-
56 
-
57 /**
-
58  * @brief Gets the system's model.
-
59  * @param model Pointer to output the model to. (0 = O3DS, 1 = O3DSXL, 2 = N3DS, 3 = 2DS, 4 = N3DSXL)
-
60  */
-
61 Result CFGU_GetSystemModel(u8* model);
-
62 
-
63 /**
-
64  * @brief Gets whether the system is a 2DS.
-
65  * @param value Pointer to output the result to. (0 = yes, 1 = no)
-
66  */
-
67 Result CFGU_GetModelNintendo2DS(u8* value);
-
68 
-
69 /**
-
70  * @brief Gets a string representing a country code.
-
71  * @param code Country code to use.
-
72  * @param string Pointer to output the string to.
-
73  */
-
74 Result CFGU_GetCountryCodeString(u16 code, u16* string);
-
75 
-
76 /**
-
77  * @brief Gets a country code ID from its string.
-
78  * @param string String to use.
-
79  * @param code Pointer to output the country code to.
-
80  */
-
81 Result CFGU_GetCountryCodeID(u16 string, u16* code);
-
82 
-
83 /**
-
84  * @brief Gets a config info block.
-
85  * @param size Size of the data to retrieve.
-
86  * @param blkID ID of the block to retrieve.
-
87  * @param outData Pointer to write the block data to.
-
88  */
-
89 Result CFGU_GetConfigInfoBlk2(u32 size, u32 blkID, u8* outData);
-
90 
-
91 /**
-
92  * @brief Gets the system's language.
-
93  * @param language Pointer to write the language to. (see @ref CFG_Language)
-
94  */
-
95 Result CFGU_GetSystemLanguage(u8* language);
+Go to the documentation of this file.
1 /**
+
2  * @file cfgu.h
+
3  * @brief CFGU (Configuration) Service
+
4  */
+
5 #pragma once
+
6 
+
7 /// Configuration region values.
+
8 typedef enum
+
9 {
+
10  CFG_REGION_JPN = 0, ///< Japan
+
11  CFG_REGION_USA = 1, ///< USA
+
12  CFG_REGION_EUR = 2, ///< Europe
+
13  CFG_REGION_AUS = 3, ///< Australia
+
14  CFG_REGION_CHN = 4, ///< China
+
15  CFG_REGION_KOR = 5, ///< Korea
+
16  CFG_REGION_TWN = 6, ///< Taiwan
+
17 } CFG_Region;
+
18 
+
19 /// Configuration language values.
+
20 typedef enum
+
21 {
+
22  CFG_LANGUAGE_JP = 0, ///< Japanese
+
23  CFG_LANGUAGE_EN = 1, ///< English
+
24  CFG_LANGUAGE_FR = 2, ///< French
+
25  CFG_LANGUAGE_DE = 3, ///< German
+
26  CFG_LANGUAGE_IT = 4, ///< Italian
+
27  CFG_LANGUAGE_ES = 5, ///< Spanish
+
28  CFG_LANGUAGE_ZH = 6, ///< Simplified Chinese
+
29  CFG_LANGUAGE_KO = 7, ///< Korean
+
30  CFG_LANGUAGE_NL = 8, ///< Dutch
+
31  CFG_LANGUAGE_PT = 9, ///< Portugese
+
32  CFG_LANGUAGE_RU = 10, ///< Russian
+
33  CFG_LANGUAGE_TW = 11, ///< Traditional Chinese
+
34 } CFG_Language;
+
35 
+
36 /// Initializes CFGU.
+
37 Result cfguInit(void);
+
38 
+
39 /// Exits CFGU.
+
40 void cfguExit(void);
+
41 
+
42 /**
+
43  * @brief Gets the system's region from secure info.
+
44  * @param region Pointer to output the region to. (see @ref CFG_Region)
+
45  */
+ +
47 
+
48 /**
+
49  * @brief Generates a console-unique hash.
+
50  * @param appIDSalt Salt to use.
+
51  * @param hash Pointer to output the hash to.
+
52  */
+
53 Result CFGU_GenHashConsoleUnique(u32 appIDSalt, u64* hash);
+
54 
+
55 /**
+
56  * @brief Gets whether the system's region is Canada or USA.
+
57  * @param value Pointer to output the result to. (0 = no, 1 = yes)
+
58  */
+ +
60 
+
61 /**
+
62  * @brief Gets the system's model.
+
63  * @param model Pointer to output the model to. (0 = O3DS, 1 = O3DSXL, 2 = N3DS, 3 = 2DS, 4 = N3DSXL)
+
64  */
+ +
66 
+
67 /**
+
68  * @brief Gets whether the system is a 2DS.
+
69  * @param value Pointer to output the result to. (0 = yes, 1 = no)
+
70  */
+ +
72 
+
73 /**
+
74  * @brief Gets a string representing a country code.
+
75  * @param code Country code to use.
+
76  * @param string Pointer to output the string to.
+
77  */
+ +
79 
+
80 /**
+
81  * @brief Gets a country code ID from its string.
+
82  * @param string String to use.
+
83  * @param code Pointer to output the country code to.
+
84  */
+
85 Result CFGU_GetCountryCodeID(u16 string, u16* code);
+
86 
+
87 /**
+
88  * @brief Gets a config info block.
+
89  * @param size Size of the data to retrieve.
+
90  * @param blkID ID of the block to retrieve.
+
91  * @param outData Pointer to write the block data to.
+
92  */
+
93 Result CFGU_GetConfigInfoBlk2(u32 size, u32 blkID, u8* outData);
+
94 
+
95 /**
+
96  * @brief Gets the system's language.
+
97  * @param language Pointer to write the language to. (see @ref CFG_Language)
+
98  */
+ +
Result CFGU_GetCountryCodeID(u16 string, u16 *code)
Gets a country code ID from its string.
+
Spanish.
Definition: cfgu.h:27
+
Russian.
Definition: cfgu.h:32
+
China.
Definition: cfgu.h:14
s32 Result
Function result.
Definition: types.h:42
+
Portugese.
Definition: cfgu.h:31
+
French.
Definition: cfgu.h:24
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
+
Korea.
Definition: cfgu.h:15
+
Result CFGU_GetSystemModel(u8 *model)
Gets the system's model.
+
German.
Definition: cfgu.h:25
+
Result CFGU_GetConfigInfoBlk2(u32 size, u32 blkID, u8 *outData)
Gets a config info block.
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
+
Simplified Chinese.
Definition: cfgu.h:28
+
void cfguExit(void)
Exits CFGU.
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
+
Result CFGU_GetSystemLanguage(u8 *language)
Gets the system's language.
+
Result cfguInit(void)
Initializes CFGU.
uint32_t u32
32-bit unsigned integer
Definition: types.h:23
+
Taiwan.
Definition: cfgu.h:16
+
Australia.
Definition: cfgu.h:13
+
Result CFGU_GetCountryCodeString(u16 code, u16 *string)
Gets a string representing a country code.
+
Result CFGU_SecureInfoGetRegion(u8 *region)
Gets the system's region from secure info.
+
Result CFGU_GetRegionCanadaUSA(u8 *value)
Gets whether the system's region is Canada or USA.
+
Japanese.
Definition: cfgu.h:22
+
Result CFGU_GetModelNintendo2DS(u8 *value)
Gets whether the system is a 2DS.
+
USA.
Definition: cfgu.h:11
+
CFG_Language
Configuration language values.
Definition: cfgu.h:20
+
Traditional Chinese.
Definition: cfgu.h:33
+
Result CFGU_GenHashConsoleUnique(u32 appIDSalt, u64 *hash)
Generates a console-unique hash.
+
Japan.
Definition: cfgu.h:10
+
Dutch.
Definition: cfgu.h:30
+
Europe.
Definition: cfgu.h:12
+
Italian.
Definition: cfgu.h:26
+
English.
Definition: cfgu.h:23
+
Korean.
Definition: cfgu.h:29
+
CFG_Region
Configuration region values.
Definition: cfgu.h:8
-
Examples:
audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
diff --git a/dir_0e005207343684f6967052d1f51a7e66.html b/dir_0e005207343684f6967052d1f51a7e66.html index 86e2faa..f29b50b 100644 --- a/dir_0e005207343684f6967052d1f51a7e66.html +++ b/dir_0e005207343684f6967052d1f51a7e66.html @@ -102,7 +102,8 @@ Files file  cfgnor.h [code]  CFGNOR service.
  -file  cfgu.h [code] +file  cfgu.h [code] + CFGU (Configuration) Service.
  file  csnd.h [code]  CSND service.
@@ -110,7 +111,8 @@ Files file  dsp.h [code]  DSP Service to access the DSP processor commands (sound)
  -file  fs.h [code] +file  fs.h [code] + Filesystem Services.
  file  gspgpu.h [code]  GSPGPU service.
diff --git a/files.html b/files.html index d183431..8209f0e 100644 --- a/files.html +++ b/files.html @@ -111,10 +111,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  apt.hAPT (Applet) service  cam.hCAM service for using the 3DS's front and back cameras  cfgnor.hCFGNOR service - cfgu.h + cfgu.hCFGU (Configuration) Service  csnd.hCSND service  dsp.hDSP Service to access the DSP processor commands (sound) - fs.h + fs.hFilesystem Services  gspgpu.hGSPGPU service  gsplcd.hGSPLCD service  hb.hHB (Homebrew) service diff --git a/fs_8h.html b/fs_8h.html new file mode 100644 index 0000000..f9bca90 --- /dev/null +++ b/fs_8h.html @@ -0,0 +1,4995 @@ + + + + + + +libctru: include/3ds/services/fs.h File Reference + + + + + + + + + + +
+
+ + + + + + +
+
libctru +
+
+
+ + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
fs.h File Reference
+
+
+ +

Filesystem Services. +More...

+
#include <3ds/types.h>
+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Data Structures

struct  FS_DirectoryEntry
 Directory entry. More...
 
struct  FS_ArchiveResource
 Archive resource information. More...
 
struct  FS_ProgramInfo
 Program information. More...
 
struct  FS_ProductInfo
 Product information. More...
 
struct  FS_IntegrityVerificationSeed
 Integrity verification seed. More...
 
struct  FS_ExtSaveDataInfo
 Ext save data information. More...
 
struct  FS_SystemSaveDataInfo
 System save data information. More...
 
struct  FS_DeviceMoveContext
 Device move context. More...
 
struct  FS_Path
 FS path. More...
 
struct  FS_Archive
 FS archive. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Enumerations

enum  {
+  FS_OPEN_READ = BIT(0), +
+  FS_OPEN_WRITE = BIT(1), +
+  FS_OPEN_CREATE = BIT(2) +
+ }
 Open flags. More...
 
enum  {
+  FS_WRITE_FLUSH = BIT(0), +
+  FS_WRITE_UPDATE_TIME = BIT(8) +
+ }
 Write flags. More...
 
enum  {
+  FS_ATTRIBUTE_READ_ONLY = BIT(0), +
+  FS_ATTRIBUTE_ARCHIVE = BIT(8), +
+  FS_ATTRIBUTE_HIDDEN = BIT(16), +
+  FS_ATTRIBUTE_DIRECTORY = BIT(24) +
+ }
 Attribute flags. More...
 
enum  FS_MediaType {
+  MEDIATYPE_NAND = 0, +
+  MEDIATYPE_SD = 1, +
+  MEDIATYPE_GAME_CARD = 2 +
+ }
 Media types. More...
 
enum  FS_ArchiveID {
+  ARCHIVE_ROMFS = 0x00000003, +
+  ARCHIVE_SAVEDATA = 0x00000004, +
+  ARCHIVE_EXTDATA = 0x00000006, +
+  ARCHIVE_SHARED_EXTDATA = 0x00000007, +
+  ARCHIVE_SYSTEM_SAVEDATA = 0x00000008, +
+  ARCHIVE_SDMC = 0x00000009, +
+  ARCHIVE_SDMC_WRITE_ONLY = 0x0000000A, +
+  ARCHIVE_BOSS_EXTDATA = 0x12345678, +
+  ARCHIVE_CARD_SPIFS = 0x12345679, +
+  ARCHIVE_EXTDATA_AND_BOSS_EXTDATA = 0x1234567B, +
+  ARCHIVE_SYSTEM_SAVEDATA2 = 0x1234567C, +
+  ARCHIVE_NAND_RW = 0x1234567D, +
+  ARCHIVE_NAND_RO = 0x1234567E, +
+  ARCHIVE_NAND_RO_WRITE_ACCESS = 0x1234567F, +
+  ARCHIVE_SAVEDATA_AND_CONTENT = 0x2345678A, +
+  ARCHIVE_SAVEDATA_AND_CONTENT2 = 0x2345678E, +
+  ARCHIVE_NAND_CTR_FS = 0x567890AB, +
+  ARCHIVE_TWL_PHOTO = 0x567890AC, +
+  ARCHIVE_NAND_TWL_FS = 0x567890AE, +
+  ARCHIVE_NAND_W_FS = 0x567890AF, +
+  ARCHIVE_GAMECARD_SAVEDATA = 0x567890B1, +
+  ARCHIVE_USER_SAVEDATA = 0x567890B2, +
+  ARCHIVE_DEMO_SAVEDATA = 0x567890B4 +
+ }
 Archive IDs. More...
 
enum  FS_PathType {
+  PATH_INVALID = 0, +
+  PATH_EMPTY = 1, +
+  PATH_BINARY = 2, +
+  PATH_ASCII = 3, +
+  PATH_UTF16 = 4 +
+ }
 Path types. More...
 
enum  FS_SecureValueSlot { SECUREVALUE_SLOT_SD = 0x1000 + }
 Secure value slot. More...
 
enum  FS_CardSpiBaudRate {
+  BAUDRATE_512KHZ = 0, +
+  BAUDRATE_1MHZ = 1, +
+  BAUDRATE_2MHZ = 2, +
+  BAUDRATE_4MHZ = 3, +
+  BAUDRATE_8MHZ = 4, +
+  BAUDRATE_16MHZ = 5 +
+ }
 Card SPI baud rate. More...
 
enum  FS_CardSpiBusMode {
+  BUSMODE_1BIT = 0, +
+  BUSMODE_4BIT = 1 +
+ }
 Card SPI bus mode. More...
 
enum  FS_SpecialContentType {
+  SPECIALCONTENT_UPDATE = 1, +
+  SPECIALCONTENT_MANUAL = 2, +
+  SPECIALCONTENT_DLP_CHILD = 3 +
+ }
 Card SPI bus mode. More...
 
enum  FS_CardType {
+  CARD_CTR = 0, +
+  CARD_TWL = 1 +
+ }
 
enum  FS_Action { FS_ACTION_UNKNOWN = 0 + }
 FS control actions.
 
enum  FS_ArchiveAction {
+  ARCHIVE_ACTION_COMMIT_SAVE_DATA = 0, +
+  ARCHIVE_ACTION_GET_TIMESTAMP = 1 +
+ }
 Archive control actions. More...
 
enum  FS_SecureSaveAction {
+  SECURESAVE_ACTION_DELETE = 0, +
+  SECURESAVE_ACTION_FORMAT = 1 +
+ }
 Secure save control actions. More...
 
enum  FS_FileAction { FILE_ACTION_UNKNOWN = 0 + }
 File control actions.
 
enum  FS_DirectoryAction { DIRECTORY_ACTION_UNKNOWN = 0 + }
 Directory control actions.
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

+Result fsInit (void)
 Initializes FS.
 
+void fsExit (void)
 Exits FS.
 
void fsUseSession (Handle session, bool sdmc)
 Sets the FSUSER session to use in the current thread. More...
 
+void fsEndUseSession (void)
 Disables the FSUSER session override in the current thread.
 
FS_Path fsMakePath (FS_PathType type, const void *path)
 Creates an FS_Path instance. More...
 
HandlefsGetSessionHandle (void)
 Gets the current FS session handle. More...
 
Result FSUSER_Control (FS_Action action, void *input, u32 inputSize, void *output, u32 outputSize)
 Performs a control operation on the filesystem. More...
 
Result FSUSER_Initialize (Handle session)
 Initializes a FSUSER session. More...
 
Result FSUSER_OpenFile (Handle *out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes)
 Opens a file. More...
 
Result FSUSER_OpenFileDirectly (Handle *out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes)
 Opens a file directly. More...
 
Result FSUSER_DeleteFile (FS_Archive archive, FS_Path path)
 Deletes a file. More...
 
Result FSUSER_RenameFile (FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath)
 Renames a file. More...
 
Result FSUSER_DeleteDirectory (FS_Archive archive, FS_Path path)
 Deletes a directory, failing if it is not empty. More...
 
Result FSUSER_DeleteDirectoryRecursively (FS_Archive archive, FS_Path path)
 Deletes a directory, also deleting its contents. More...
 
Result FSUSER_CreateFile (FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize)
 Creates a file. More...
 
Result FSUSER_CreateDirectory (FS_Archive archive, FS_Path path, u32 attributes)
 Creates a directory. More...
 
Result FSUSER_RenameDirectory (FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath)
 Renames a directory. More...
 
Result FSUSER_OpenDirectory (Handle *out, FS_Archive archive, FS_Path path)
 Opens a directory. More...
 
Result FSUSER_OpenArchive (FS_Archive *archive)
 Opens an archive. More...
 
Result FSUSER_ControlArchive (FS_Archive archive, FS_ArchiveAction action, void *input, u32 inputSize, void *output, u32 outputSize)
 Performs a control operation on an archive. More...
 
Result FSUSER_CloseArchive (FS_Archive *archive)
 Closes an archive. More...
 
Result FSUSER_GetFreeBytes (u64 *freeBytes, FS_Archive archive)
 Gets the number of free bytes within an archive. More...
 
Result FSUSER_GetCardType (FS_CardType *type)
 Gets the inserted card type. More...
 
Result FSUSER_GetSdmcArchiveResource (FS_ArchiveResource *archiveResource)
 Gets the SDMC archive resource information. More...
 
Result FSUSER_GetNandArchiveResource (FS_ArchiveResource *archiveResource)
 Gets the NAND archive resource information. More...
 
Result FSUSER_GetSdmcFatfsError (u32 *error)
 Gets the last SDMC fatfs error. More...
 
Result FSUSER_IsSdmcDetected (bool *detected)
 Gets whether an SD card is detected. More...
 
Result FSUSER_IsSdmcWritable (bool *writable)
 Gets whether the SD card is writable. More...
 
Result FSUSER_GetSdmcCid (u8 *out, u32 length)
 Gets the SDMC CID. More...
 
Result FSUSER_GetNandCid (u8 *out, u32 length)
 Gets the NAND CID. More...
 
Result FSUSER_GetSdmcSpeedInfo (u32 *speedInfo)
 Gets the SDMC speed info. More...
 
Result FSUSER_GetNandSpeedInfo (u32 *speedInfo)
 Gets the NAND speed info. More...
 
Result FSUSER_GetSdmcLog (u8 *out, u32 length)
 Gets the SDMC log. More...
 
Result FSUSER_GetNandLog (u8 *out, u32 length)
 Gets the NAND log. More...
 
+Result FSUSER_ClearSdmcLog (void)
 Clears the SDMC log.
 
+Result FSUSER_ClearNandLog (void)
 Clears the NAND log.
 
Result FSUSER_CardSlotIsInserted (bool *inserted)
 Gets whether a card is inserted. More...
 
Result FSUSER_CardSlotPowerOn (bool *status)
 Powers on the card slot. More...
 
Result FSUSER_CardSlotPowerOff (bool *status)
 Powers off the card slot. More...
 
Result FSUSER_CardSlotGetCardIFPowerStatus (bool *status)
 Gets the card's power status. More...
 
Result FSUSER_CardNorDirectCommand (u8 commandId)
 Executes a CARDNOR direct command. More...
 
Result FSUSER_CardNorDirectCommandWithAddress (u8 commandId, u32 address)
 Executes a CARDNOR direct command with an address. More...
 
Result FSUSER_CardNorDirectRead (u8 commandId, u32 size, u8 *output)
 Executes a CARDNOR direct read. More...
 
Result FSUSER_CardNorDirectReadWithAddress (u8 commandId, u32 address, u32 size, u8 *output)
 Executes a CARDNOR direct read with an address. More...
 
Result FSUSER_CardNorDirectWrite (u8 commandId, u32 size, u8 *input)
 Executes a CARDNOR direct write. More...
 
Result FSUSER_CardNorDirectWriteWithAddress (u8 commandId, u32 address, u32 size, u8 *input)
 Executes a CARDNOR direct write with an address. More...
 
Result FSUSER_CardNorDirectRead_4xIO (u8 commandId, u32 address, u32 size, u8 *output)
 Executes a CARDNOR 4xIO direct read. More...
 
Result FSUSER_CardNorDirectCpuWriteWithoutVerify (u32 address, u32 size, u8 *input)
 Executes a CARDNOR direct CPU write without verify. More...
 
Result FSUSER_CardNorDirectSectorEraseWithoutVerify (u32 address)
 Executes a CARDNOR direct sector erase without verify. More...
 
Result FSUSER_GetProductInfo (FS_ProductInfo *info, u32 processId)
 Gets a process's product info. More...
 
Result FSUSER_GetProgramLaunchInfo (FS_ProgramInfo *info, u32 processId)
 Gets a process's program launch info. More...
 
Result FSUSER_SetCardSpiBaudRate (FS_CardSpiBaudRate baudRate)
 Sets the CARDSPI baud rate. More...
 
Result FSUSER_SetCardSpiBusMode (FS_CardSpiBusMode busMode)
 Sets the CARDSPI bus mode. More...
 
+Result FSUSER_SendInitializeInfoTo9 (void)
 Sends initialization info to ARM9.
 
Result FSUSER_GetSpecialContentIndex (u16 *index, FS_MediaType mediaType, u64 programId, FS_SpecialContentType type)
 Gets a special content's index. More...
 
Result FSUSER_GetLegacyRomHeader (FS_MediaType mediaType, u64 programId, u8 *header)
 Gets the legacy ROM header of a program. More...
 
Result FSUSER_GetLegacyBannerData (FS_MediaType mediaType, u64 programId, u8 *banner)
 Gets the legacy banner data of a program. More...
 
Result FSUSER_CheckAuthorityToAccessExtSaveData (bool *access, FS_MediaType mediaType, u64 saveId, u32 processId)
 Checks a process's authority to access a save data archive. More...
 
Result FSUSER_QueryTotalQuotaSize (u64 *quotaSize, u32 directories, u32 files, u32 fileSizeCount, u64 *fileSizes)
 Queries the total quota size of a save data archive. More...
 
Result FSUSER_AbnegateAccessRight (u32 accessRight)
 Abnegates an access right. More...
 
+Result FSUSER_DeleteSdmcRoot (void)
 Deletes the 3DS SDMC root.
 
+Result FSUSER_DeleteAllExtSaveDataOnNand (void)
 Deletes all ext save data on the NAND.
 
+Result FSUSER_InitializeCtrFileSystem (void)
 Initializes the CTR file system.
 
+Result FSUSER_CreateSeed (void)
 Creates the FS seed.
 
Result FSUSER_GetFormatInfo (u32 *totalSize, u32 *directories, u32 *files, bool *duplicateData, FS_ArchiveID archiveId, FS_Path path)
 Retrieves archive format info. More...
 
Result FSUSER_GetLegacyRomHeader2 (u32 headerSize, FS_MediaType mediaType, u64 programId, u8 *header)
 Gets the legacy ROM header of a program. More...
 
Result FSUSER_GetSdmcCtrRootPath (u8 *out, u32 length)
 Gets the CTR SDMC root path. More...
 
Result FSUSER_GetArchiveResource (FS_ArchiveResource *archiveResource, FS_MediaType mediaType)
 Gets an archive's resource information. More...
 
Result FSUSER_ExportIntegrityVerificationSeed (FS_IntegrityVerificationSeed *seed)
 Exports the integrity verification seed. More...
 
Result FSUSER_ImportIntegrityVerificationSeed (FS_IntegrityVerificationSeed *seed)
 Imports an integrity verification seed. More...
 
Result FSUSER_FormatSaveData (FS_ArchiveID archiveId, FS_Path path, u32 blocks, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData)
 Formats save data. More...
 
Result FSUSER_GetLegacySubBannerData (u32 bannerSize, FS_MediaType mediaType, u64 programId, u8 *banner)
 Gets the legacy sub banner data of a program. More...
 
Result FSUSER_ReadSpecialFile (u32 *bytesRead, u64 fileOffset, u32 size, u8 *data)
 Reads from a special file. More...
 
Result FSUSER_GetSpecialFileSize (u64 *fileSize)
 Gets the size of a special file. More...
 
Result FSUSER_CreateExtSaveData (FS_ExtSaveDataInfo info, u32 directories, u32 files, u64 sizeLimit, u32 smdhSize, u8 *smdh)
 Creates ext save data. More...
 
Result FSUSER_DeleteExtSaveData (FS_ExtSaveDataInfo info)
 Deletes ext save data. More...
 
Result FSUSER_ReadExtSaveDataIcon (u32 *bytesRead, FS_ExtSaveDataInfo info, u32 smdhSize, u8 *smdh)
 Reads the SMDH icon of ext save data. More...
 
Result FSUSER_GetExtDataBlockSize (u64 *totalBlocks, u64 *freeBlocks, u32 *blockSize, FS_ExtSaveDataInfo info)
 Gets an ext data archive's block information. More...
 
Result FSUSER_EnumerateExtSaveData (u32 *idsWritten, u32 idsSize, FS_MediaType mediaType, u32 idSize, bool shared, u8 *ids)
 Enumerates ext save data. More...
 
Result FSUSER_CreateSystemSaveData (FS_SystemSaveDataInfo info, u32 totalSize, u32 blockSize, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData)
 Creates system save data. More...
 
Result FSUSER_DeleteSystemSaveData (FS_SystemSaveDataInfo info)
 Deletes system save data. More...
 
Result FSUSER_StartDeviceMoveAsSource (FS_DeviceMoveContext *context)
 Initiates a device move as the source device. More...
 
Result FSUSER_StartDeviceMoveAsDestination (FS_DeviceMoveContext context, bool clear)
 Initiates a device move as the destination device. More...
 
Result FSUSER_SetArchivePriority (FS_Archive archive, u32 priority)
 Sets an archive's priority. More...
 
Result FSUSER_GetArchivePriority (u32 *priority, FS_Archive archive)
 Gets an archive's priority. More...
 
Result FSUSER_SetCtrCardLatencyParameter (u64 latency, bool emulateEndurance)
 Configures CTRCARD latency emulation. More...
 
Result FSUSER_SwitchCleanupInvalidSaveData (bool enable)
 Toggles cleaning up invalid save data. More...
 
Result FSUSER_EnumerateSystemSaveData (u32 *idsWritten, u32 idsSize, u64 *ids)
 Enumerates system save data. More...
 
Result FSUSER_InitializeWithSdkVersion (Handle session, u32 version)
 Initializes a FSUSER session with an SDK version. More...
 
Result FSUSER_SetPriority (u32 priority)
 Sets the file system priority. More...
 
Result FSUSER_GetPriority (u32 *priority)
 Gets the file system priority. More...
 
Result FSUSER_SetSaveDataSecureValue (u64 value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation)
 Sets the save data secure value. More...
 
Result FSUSER_GetSaveDataSecureValue (bool *exists, u64 *value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation)
 Gets the save data secure value. More...
 
Result FSUSER_ControlSecureSave (FS_SecureSaveAction action, void *input, u32 inputSize, void *output, u32 outputSize)
 Performs a control operation on a secure save. More...
 
Result FSUSER_GetMediaType (FS_MediaType *mediaType)
 Gets the media type of the current application. More...
 
Result FSFILE_Control (Handle handle, FS_FileAction action, void *input, u32 inputSize, void *output, u32 outputSize)
 Performs a control operation on a file. More...
 
Result FSFILE_OpenSubFile (Handle handle, Handle *subFile, u64 offset, u64 size)
 Opens a handle to a sub-section of a file. More...
 
Result FSFILE_Read (Handle handle, u32 *bytesRead, u64 offset, void *buffer, u32 size)
 Reads from a file. More...
 
Result FSFILE_Write (Handle handle, u32 *bytesWritten, u64 offset, const void *buffer, u32 size, u32 flags)
 Writes to a file. More...
 
Result FSFILE_GetSize (Handle handle, u64 *size)
 Gets the size of a file. More...
 
Result FSFILE_SetSize (Handle handle, u64 size)
 Sets the size of a file. More...
 
Result FSFILE_GetAttributes (Handle handle, u32 *attributes)
 Gets the attributes of a file. More...
 
Result FSFILE_SetAttributes (Handle handle, u32 attributes)
 Sets the attributes of a file. More...
 
Result FSFILE_Close (Handle handle)
 Closes a file. More...
 
Result FSFILE_Flush (Handle handle)
 Flushes a file's contents. More...
 
Result FSFILE_SetPriority (Handle handle, u32 priority)
 Sets a file's priority. More...
 
Result FSFILE_GetPriority (Handle handle, u32 *priority)
 Gets a file's priority. More...
 
Result FSFILE_OpenLinkFile (Handle handle, Handle *linkFile)
 Opens a duplicate handle to a file. More...
 
Result FSDIR_Control (Handle handle, FS_DirectoryAction action, void *input, u32 inputSize, void *output, u32 outputSize)
 Performs a control operation on a directory. More...
 
Result FSDIR_Read (Handle handle, u32 *entriesRead, u32 entryCount, FS_DirectoryEntry *entries)
 Reads one or more directory entries. More...
 
Result FSDIR_Close (Handle handle)
 Closes a directory. More...
 
Result FSDIR_SetPriority (Handle handle, u32 priority)
 Sets a directory's priority. More...
 
Result FSDIR_GetPriority (Handle handle, u32 *priority)
 Gets a directory's priority. More...
 
+

Detailed Description

+

Filesystem Services.

+

Enumeration Type Documentation

+ +
+
+ + + + +
anonymous enum
+
+ +

Open flags.

+ + + + +
Enumerator
FS_OPEN_READ  +

Open for reading.

+
FS_OPEN_WRITE  +

Open for writing.

+
FS_OPEN_CREATE  +

Create file.

+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+ +

Write flags.

+ + + +
Enumerator
FS_WRITE_FLUSH  +

Flush.

+
FS_WRITE_UPDATE_TIME  +

Update file timestamp.

+
+ +
+
+ +
+
+ + + + +
anonymous enum
+
+ +

Attribute flags.

+ + + + + +
Enumerator
FS_ATTRIBUTE_READ_ONLY  +

Read-only.

+
FS_ATTRIBUTE_ARCHIVE  +

Archive.

+
FS_ATTRIBUTE_HIDDEN  +

Hidden.

+
FS_ATTRIBUTE_DIRECTORY  +

Directory.

+
+ +
+
+ +
+
+ + + + +
enum FS_ArchiveAction
+
+ +

Archive control actions.

+ + + +
Enumerator
ARCHIVE_ACTION_COMMIT_SAVE_DATA  +

Commits save data changes. No inputs/outputs.

+
ARCHIVE_ACTION_GET_TIMESTAMP  +

Retrieves a file's last-modified timestamp. In: "u16*, UTF-16 Path", Out: "u64, Time Stamp".

+
+ +
+
+ +
+
+ + + + +
enum FS_ArchiveID
+
+ +

Archive IDs.

+ + + + + + + + + + + + + + + + + + + + + + + + +
Enumerator
ARCHIVE_ROMFS  +

RomFS archive.

+
ARCHIVE_SAVEDATA  +

Save data archive.

+
ARCHIVE_EXTDATA  +

Ext data archive.

+
ARCHIVE_SHARED_EXTDATA  +

Shared ext data archive.

+
ARCHIVE_SYSTEM_SAVEDATA  +

System save data archive.

+
ARCHIVE_SDMC  +

SDMC archive.

+
ARCHIVE_SDMC_WRITE_ONLY  +

Write-only SDMC archive.

+
ARCHIVE_BOSS_EXTDATA  +

BOSS ext data archive.

+
ARCHIVE_CARD_SPIFS  +

Card SPI FS archive.

+
ARCHIVE_EXTDATA_AND_BOSS_EXTDATA  +

Ext data and BOSS ext data archive.

+
ARCHIVE_SYSTEM_SAVEDATA2  +

System save data archive.

+
ARCHIVE_NAND_RW  +

Read-write NAND archive.

+
ARCHIVE_NAND_RO  +

Read-only NAND archive.

+
ARCHIVE_NAND_RO_WRITE_ACCESS  +

Read-only write access NAND archive.

+
ARCHIVE_SAVEDATA_AND_CONTENT  +

User save data and ExeFS/RomFS archive.

+
ARCHIVE_SAVEDATA_AND_CONTENT2  +

User save data and ExeFS/RomFS archive (only ExeFS for fs:LDR).

+
ARCHIVE_NAND_CTR_FS  +

NAND CTR FS archive.

+
ARCHIVE_TWL_PHOTO  +

TWL PHOTO archive.

+
ARCHIVE_NAND_TWL_FS  +

NAND TWL FS archive.

+
ARCHIVE_NAND_W_FS  +

NAND W FS archive.

+
ARCHIVE_GAMECARD_SAVEDATA  +

Game card save data archive.

+
ARCHIVE_USER_SAVEDATA  +

User save data archive.

+
ARCHIVE_DEMO_SAVEDATA  +

Demo save data archive.

+
+ +
+
+ +
+
+ + + + +
enum FS_CardSpiBaudRate
+
+ +

Card SPI baud rate.

+ + + + + + + +
Enumerator
BAUDRATE_512KHZ  +

512KHz.

+
BAUDRATE_1MHZ  +

1MHz.

+
BAUDRATE_2MHZ  +

2MHz.

+
BAUDRATE_4MHZ  +

4MHz.

+
BAUDRATE_8MHZ  +

8MHz.

+
BAUDRATE_16MHZ  +

16MHz.

+
+ +
+
+ +
+
+ + + + +
enum FS_CardSpiBusMode
+
+ +

Card SPI bus mode.

+ + + +
Enumerator
BUSMODE_1BIT  +

1-bit.

+
BUSMODE_4BIT  +

4-bit.

+
+ +
+
+ +
+
+ + + + +
enum FS_CardType
+
+ + + +
Enumerator
CARD_CTR  +

CTR card.

+
CARD_TWL  +

TWL card.

+
+ +
+
+ +
+
+ + + + +
enum FS_MediaType
+
+ +

Media types.

+ + + + +
Enumerator
MEDIATYPE_NAND  +

NAND.

+
MEDIATYPE_SD  +

SD card.

+
MEDIATYPE_GAME_CARD  +

Game card.

+
+ +
+
+ +
+
+ + + + +
enum FS_PathType
+
+ +

Path types.

+ + + + + + +
Enumerator
PATH_INVALID  +

Invalid path.

+
PATH_EMPTY  +

Empty path.

+
PATH_BINARY  +

Binary path. Meaning is per-archive.

+
PATH_ASCII  +

ASCII text path.

+
PATH_UTF16  +

UTF-16 text path.

+
+ +
+
+ +
+
+ + + + +
enum FS_SecureSaveAction
+
+ +

Secure save control actions.

+ + + +
Enumerator
SECURESAVE_ACTION_DELETE  +

Deletes a save's secure value. In: "u64, ((SecureValueSlot << 32) | (TitleUniqueId << 8) | TitleVariation)", Out: "u8, Value Existed".

+
SECURESAVE_ACTION_FORMAT  +

Formats a save. No inputs/outputs.

+
+ +
+
+ +
+
+ + + + +
enum FS_SecureValueSlot
+
+ +

Secure value slot.

+ + +
Enumerator
SECUREVALUE_SLOT_SD  +

SD application.

+
+ +
+
+ +
+
+ + + + +
enum FS_SpecialContentType
+
+ +

Card SPI bus mode.

+ + + + +
Enumerator
SPECIALCONTENT_UPDATE  +

Update.

+
SPECIALCONTENT_MANUAL  +

Manual.

+
SPECIALCONTENT_DLP_CHILD  +

DLP child.

+
+ +
+
+

Function Documentation

+ +
+
+ + + + + + + + +
Result FSDIR_Close (Handle handle)
+
+ +

Closes a directory.

+
Parameters
+ + +
handleHandle of the directory.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSDIR_Control (Handle handle,
FS_DirectoryAction action,
void * input,
u32 inputSize,
void * output,
u32 outputSize 
)
+
+ +

Performs a control operation on a directory.

+
Parameters
+ + + + + + + +
handleHandle of the directory.
actionAction to perform.
inputBuffer to read input from.
inputSizeSize of the input.
outputBuffer to write output to.
outputSizeSize of the output.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSDIR_GetPriority (Handle handle,
u32priority 
)
+
+ +

Gets a directory's priority.

+
Parameters
+ + + +
handleHandle of the directory.
priorityPointer to output the priority to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSDIR_Read (Handle handle,
u32entriesRead,
u32 entryCount,
FS_DirectoryEntryentries 
)
+
+ +

Reads one or more directory entries.

+
Parameters
+ + + + + +
handleHandle of the directory.
entriesReadPointer to output the number of entries read to.
entryCountNumber of entries to read.
entryOutPointer to output directory entries to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSDIR_SetPriority (Handle handle,
u32 priority 
)
+
+ +

Sets a directory's priority.

+
Parameters
+ + + +
handleHandle of the directory.
priorityPriority to set.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSFILE_Close (Handle handle)
+
+ +

Closes a file.

+
Parameters
+ + +
handleHandle of the file.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSFILE_Control (Handle handle,
FS_FileAction action,
void * input,
u32 inputSize,
void * output,
u32 outputSize 
)
+
+ +

Performs a control operation on a file.

+
Parameters
+ + + + + + + +
handleHandle of the file.
actionAction to perform.
inputBuffer to read input from.
inputSizeSize of the input.
outputBuffer to write output to.
outputSizeSize of the output.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSFILE_Flush (Handle handle)
+
+ +

Flushes a file's contents.

+
Parameters
+ + +
handleHandle of the file.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSFILE_GetAttributes (Handle handle,
u32attributes 
)
+
+ +

Gets the attributes of a file.

+
Parameters
+ + + +
handleHandle of the file.
attributesPointer to output the attributes to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSFILE_GetPriority (Handle handle,
u32priority 
)
+
+ +

Gets a file's priority.

+
Parameters
+ + + +
handleHandle of the file.
priorityPointer to output the priority to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSFILE_GetSize (Handle handle,
u64size 
)
+
+ +

Gets the size of a file.

+
Parameters
+ + + +
handleHandle of the file.
sizePointer to output the size to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSFILE_OpenLinkFile (Handle handle,
HandlelinkFile 
)
+
+ +

Opens a duplicate handle to a file.

+
Parameters
+ + + +
handleHandle of the file.
linkFilePointer to output the link handle to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSFILE_OpenSubFile (Handle handle,
HandlesubFile,
u64 offset,
u64 size 
)
+
+ +

Opens a handle to a sub-section of a file.

+
Parameters
+ + + + + +
handleHandle of the file.
subFilePointer to output the sub-file to.
offsetOffset of the sub-section.
sizeSize of the sub-section.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSFILE_Read (Handle handle,
u32bytesRead,
u64 offset,
void * buffer,
u32 size 
)
+
+ +

Reads from a file.

+
Parameters
+ + + + + + +
handleHandle of the file.
bytesReadPointer to output the number of bytes read to.
offsetOffset to read from.
bufferBuffer to read to.
sizeSize of the buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSFILE_SetAttributes (Handle handle,
u32 attributes 
)
+
+ +

Sets the attributes of a file.

+
Parameters
+ + + +
handleHandle of the file.
attributesAttributes to set.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSFILE_SetPriority (Handle handle,
u32 priority 
)
+
+ +

Sets a file's priority.

+
Parameters
+ + + +
handleHandle of the file.
priorityPriority to set.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSFILE_SetSize (Handle handle,
u64 size 
)
+
+ +

Sets the size of a file.

+
Parameters
+ + + +
handleHandle of the file.
sizeSize to set.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSFILE_Write (Handle handle,
u32bytesWritten,
u64 offset,
const void * buffer,
u32 size,
u32 flags 
)
+
+ +

Writes to a file.

+
Parameters
+ + + + + + + +
handleHandle of the file.
bytesWrittenPointer to output the number of bytes written to.
offsetOffset to write to.
bufferBuffer to write from.
sizeSize of the buffer.
flagsFlags to use when writing.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Handle* fsGetSessionHandle (void )
+
+ +

Gets the current FS session handle.

+
Returns
The current FS session handle.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
FS_Path fsMakePath (FS_PathType type,
const void * path 
)
+
+ +

Creates an FS_Path instance.

+
Parameters
+ + + +
typeType of path.
pathPath to use.
+
+
+
Returns
The created FS_Path instance.
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_AbnegateAccessRight (u32 accessRight)
+
+ +

Abnegates an access right.

+
Parameters
+ + +
accessRightAccess right to abnegate.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_CardNorDirectCommand (u8 commandId)
+
+ +

Executes a CARDNOR direct command.

+
Parameters
+ + +
commandIdID of the command.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_CardNorDirectCommandWithAddress (u8 commandId,
u32 address 
)
+
+ +

Executes a CARDNOR direct command with an address.

+
Parameters
+ + + +
commandIdID of the command.
addressAddress to provide.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CardNorDirectCpuWriteWithoutVerify (u32 address,
u32 size,
u8input 
)
+
+ +

Executes a CARDNOR direct CPU write without verify.

+
Parameters
+ + + + +
addressAddress to provide.
sizeSize of the input buffer.
outputInput buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CardNorDirectRead (u8 commandId,
u32 size,
u8output 
)
+
+ +

Executes a CARDNOR direct read.

+
Parameters
+ + + + +
commandIdID of the command.
sizeSize of the output buffer.
outputOutput buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CardNorDirectRead_4xIO (u8 commandId,
u32 address,
u32 size,
u8output 
)
+
+ +

Executes a CARDNOR 4xIO direct read.

+
Parameters
+ + + + + +
commandIdID of the command.
addressAddress to provide.
sizeSize of the output buffer.
outputOutput buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CardNorDirectReadWithAddress (u8 commandId,
u32 address,
u32 size,
u8output 
)
+
+ +

Executes a CARDNOR direct read with an address.

+
Parameters
+ + + + + +
commandIdID of the command.
addressAddress to provide.
sizeSize of the output buffer.
outputOutput buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_CardNorDirectSectorEraseWithoutVerify (u32 address)
+
+ +

Executes a CARDNOR direct sector erase without verify.

+
Parameters
+ + +
addressAddress to provide.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CardNorDirectWrite (u8 commandId,
u32 size,
u8input 
)
+
+ +

Executes a CARDNOR direct write.

+
Parameters
+ + + + +
commandIdID of the command.
sizeSize of the input buffer.
outputInput buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CardNorDirectWriteWithAddress (u8 commandId,
u32 address,
u32 size,
u8input 
)
+
+ +

Executes a CARDNOR direct write with an address.

+
Parameters
+ + + + + +
commandIdID of the command.
addressAddress to provide.
sizeSize of the input buffer.
inputInput buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_CardSlotGetCardIFPowerStatus (bool * status)
+
+ +

Gets the card's power status.

+
Parameters
+ + +
statusPointer to output the power status to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_CardSlotIsInserted (bool * inserted)
+
+ +

Gets whether a card is inserted.

+
Parameters
+ + +
insertedPointer to output the insertion status to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_CardSlotPowerOff (bool * status)
+
+ +

Powers off the card slot.

+
Parameters
+ + +
statusPointer to output the power status to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_CardSlotPowerOn (bool * status)
+
+ +

Powers on the card slot.

+
Parameters
+ + +
statusPointer to output the power status to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CheckAuthorityToAccessExtSaveData (bool * access,
FS_MediaType mediaType,
u64 saveId,
u32 processId 
)
+
+ +

Checks a process's authority to access a save data archive.

+
Parameters
+ + + + + +
accessPointer to output the access status to.
mediaTypeMedia type of the save data.
saveIdID of the save data.
processIdID of the process to check.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_CloseArchive (FS_Archivearchive)
+
+ +

Closes an archive.

+
Parameters
+ + +
archiveArchive to close.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_Control (FS_Action action,
void * input,
u32 inputSize,
void * output,
u32 outputSize 
)
+
+ +

Performs a control operation on the filesystem.

+
Parameters
+ + + + + + +
actionAction to perform.
inputBuffer to read input from.
inputSizeSize of the input.
outputBuffer to write output to.
outputSizeSize of the output.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_ControlArchive (FS_Archive archive,
FS_ArchiveAction action,
void * input,
u32 inputSize,
void * output,
u32 outputSize 
)
+
+ +

Performs a control operation on an archive.

+
Parameters
+ + + + + + + +
archiveArchive to control.
actionAction to perform.
inputBuffer to read input from.
inputSizeSize of the input.
outputBuffer to write output to.
outputSizeSize of the output.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_ControlSecureSave (FS_SecureSaveAction action,
void * input,
u32 inputSize,
void * output,
u32 outputSize 
)
+
+ +

Performs a control operation on a secure save.

+
Parameters
+ + + + + + +
actionAction to perform.
inputBuffer to read input from.
inputSizeSize of the input.
outputBuffer to write output to.
outputSizeSize of the output.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CreateDirectory (FS_Archive archive,
FS_Path path,
u32 attributes 
)
+
+ +

Creates a directory.

+
Parameters
+ + + + +
archiveArchive containing the directory.
pathPath of the directory.
attributesAttributes of the directory.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CreateExtSaveData (FS_ExtSaveDataInfo info,
u32 directories,
u32 files,
u64 sizeLimit,
u32 smdhSize,
u8smdh 
)
+
+ +

Creates ext save data.

+
Parameters
+ + + + + + + +
infoInfo of the save data.
directoriesNumber of directories.
filesNumber of files.
sizeLimitSize limit of the save data.
smdhSizeSize of the save data's SMDH data.
smdhSMDH data.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CreateFile (FS_Archive archive,
FS_Path path,
u32 attributes,
u64 fileSize 
)
+
+ +

Creates a file.

+
Parameters
+ + + + + +
archiveArchive containing the file.
pathPath of the file.
attributesAttributes of the file.
fileSizeSize of the file.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_CreateSystemSaveData (FS_SystemSaveDataInfo info,
u32 totalSize,
u32 blockSize,
u32 directories,
u32 files,
u32 directoryBuckets,
u32 fileBuckets,
bool duplicateData 
)
+
+ +

Creates system save data.

+
Parameters
+ + + + + + + + + +
infoInfo of the save data.
totalSizeTotal size of the save data.
blockSizeBlock size of the save data. (usually 0x1000)
directoriesNumber of directories.
filesNumber of files.
directoryBucketsDirectory hash tree bucket count.
fileBucketsFile hash tree bucket count.
duplicateDataWhether to store an internal duplicate of the data.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_DeleteDirectory (FS_Archive archive,
FS_Path path 
)
+
+ +

Deletes a directory, failing if it is not empty.

+
Parameters
+ + + +
archiveArchive containing the directory.
pathPath of the directory.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_DeleteDirectoryRecursively (FS_Archive archive,
FS_Path path 
)
+
+ +

Deletes a directory, also deleting its contents.

+
Parameters
+ + + +
archiveArchive containing the directory.
pathPath of the directory.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_DeleteExtSaveData (FS_ExtSaveDataInfo info)
+
+ +

Deletes ext save data.

+
Parameters
+ + +
infoInfo of the save data.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_DeleteFile (FS_Archive archive,
FS_Path path 
)
+
+ +

Deletes a file.

+
Parameters
+ + + +
archiveArchive containing the file.
pathPath of the file.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_DeleteSystemSaveData (FS_SystemSaveDataInfo info)
+
+ +

Deletes system save data.

+
Parameters
+ + +
infoInfo of the save data.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_EnumerateExtSaveData (u32idsWritten,
u32 idsSize,
FS_MediaType mediaType,
u32 idSize,
bool shared,
u8ids 
)
+
+ +

Enumerates ext save data.

+
Parameters
+ + + + + + + +
idsWrittenPointer to output the number of IDs written to.
idsSizeSize of the IDs buffer.
mediaTypeMedia type to enumerate over.
idSizeSize of each ID element.
sharedWhether to enumerate shared ext save data.
idsPointer to output IDs to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_EnumerateSystemSaveData (u32idsWritten,
u32 idsSize,
u64ids 
)
+
+ +

Enumerates system save data.

+
Parameters
+ + + + +
idsWrittenPointer to output the number of IDs written to.
idsSizeSize of the IDs buffer.
idsPointer to output IDs to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_ExportIntegrityVerificationSeed (FS_IntegrityVerificationSeedseed)
+
+ +

Exports the integrity verification seed.

+
Parameters
+ + +
seedPointer to output the seed to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_FormatSaveData (FS_ArchiveID archiveId,
FS_Path path,
u32 blocks,
u32 directories,
u32 files,
u32 directoryBuckets,
u32 fileBuckets,
bool duplicateData 
)
+
+ +

Formats save data.

+
Parameters
+ + + + + + + + + +
archiveIdID of the save data archive.
pathPath of the save data.
blocksSize of the save data in blocks. (512 bytes)
directoriesNumber of directories.
filesNumber of files.
directoryBucketsDirectory hash tree bucket count.
fileBucketsFile hash tree bucket count.
duplicateDataWhether to store an internal duplicate of the data.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetArchivePriority (u32priority,
FS_Archive archive 
)
+
+ +

Gets an archive's priority.

+
Parameters
+ + + +
priorityPointer to output the priority to.
archiveArchive to use.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetArchiveResource (FS_ArchiveResourcearchiveResource,
FS_MediaType mediaType 
)
+
+ +

Gets an archive's resource information.

+
Parameters
+ + + +
archiveResourcePointer to output the archive resource information to.
mediaTypeMedia type to check.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetCardType (FS_CardTypetype)
+
+ +

Gets the inserted card type.

+
Parameters
+ + +
typePointer to output the card type to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetExtDataBlockSize (u64totalBlocks,
u64freeBlocks,
u32blockSize,
FS_ExtSaveDataInfo info 
)
+
+ +

Gets an ext data archive's block information.

+
Parameters
+ + + + + +
totalBlocksPointer to output the total blocks to.
freeBlocksPointer to output the free blocks to.
blockSizePointer to output the block size to.
infoInfo of the save data.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetFormatInfo (u32totalSize,
u32directories,
u32files,
bool * duplicateData,
FS_ArchiveID archiveId,
FS_Path path 
)
+
+ +

Retrieves archive format info.

+
Parameters
+ + + + + + + +
totalSizePointer to output the total size to.
directoriesPointer to output the number of directories to.
filesPointer to output the number of files to.
duplicateDataPointer to output whether to duplicate data to.
archiveIdID of the archive.
pathPath of the archive.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetFreeBytes (u64freeBytes,
FS_Archive archive 
)
+
+ +

Gets the number of free bytes within an archive.

+
Parameters
+ + + +
freeBytesPointer to output the free bytes to.
archiveArchive to check.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetLegacyBannerData (FS_MediaType mediaType,
u64 programId,
u8banner 
)
+
+ +

Gets the legacy banner data of a program.

+
Parameters
+ + + + +
mediaTypeMedia type of the program.
programIdID of the program.
headerPointer to output the legacy banner data to. (size = 0x23C0)
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetLegacyRomHeader (FS_MediaType mediaType,
u64 programId,
u8header 
)
+
+ +

Gets the legacy ROM header of a program.

+
Parameters
+ + + + +
mediaTypeMedia type of the program.
programIdID of the program.
headerPointer to output the legacy ROM header to. (size = 0x3B4)
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetLegacyRomHeader2 (u32 headerSize,
FS_MediaType mediaType,
u64 programId,
u8header 
)
+
+ +

Gets the legacy ROM header of a program.

+
Parameters
+ + + + + +
headerSizeSize of the ROM header.
mediaTypeMedia type of the program.
programIdID of the program.
headerPointer to output the legacy ROM header to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetLegacySubBannerData (u32 bannerSize,
FS_MediaType mediaType,
u64 programId,
u8banner 
)
+
+ +

Gets the legacy sub banner data of a program.

+
Parameters
+ + + + + +
bannerSizeSize of the banner.
mediaTypeMedia type of the program.
programIdID of the program.
headerPointer to output the legacy sub banner data to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetMediaType (FS_MediaTypemediaType)
+
+ +

Gets the media type of the current application.

+
Parameters
+ + +
mediaTypePointer to output the media type to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetNandArchiveResource (FS_ArchiveResourcearchiveResource)
+
+ +

Gets the NAND archive resource information.

+
Parameters
+ + +
archiveResourcePointer to output the archive resource information to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetNandCid (u8out,
u32 length 
)
+
+ +

Gets the NAND CID.

+
Parameters
+ + + +
outPointer to output the CID to.
lengthLength of the CID buffer. (should be 0x10)
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetNandLog (u8out,
u32 length 
)
+
+ +

Gets the NAND log.

+
Parameters
+ + + +
outPointer to output the log to.
lengthLength of the log buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetNandSpeedInfo (u32speedInfo)
+
+ +

Gets the NAND speed info.

+
Parameters
+ + +
speedInfoPointer to output the speed info to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetPriority (u32priority)
+
+ +

Gets the file system priority.

+
Parameters
+ + +
priorityPointer to output the priority to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetProductInfo (FS_ProductInfoinfo,
u32 processId 
)
+
+ +

Gets a process's product info.

+
Parameters
+ + + +
infoPointer to output the product info to.
processIdID of the process.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetProgramLaunchInfo (FS_ProgramInfoinfo,
u32 processId 
)
+
+ +

Gets a process's program launch info.

+
Parameters
+ + + +
infoPointer to output the program launch info to.
processIdID of the process.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetSaveDataSecureValue (bool * exists,
u64value,
FS_SecureValueSlot slot,
u32 titleUniqueId,
u8 titleVariation 
)
+
+ +

Gets the save data secure value.

+
Parameters
+ + + + + + +
existsPointer to output whether the secure value exists to.
valuePointer to output the secure value to.
slotSlot of the secure value.
titleUniqueIdUnique ID of the title. (default = 0)
titleVariationVariation of the title. (default = 0)
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetSdmcArchiveResource (FS_ArchiveResourcearchiveResource)
+
+ +

Gets the SDMC archive resource information.

+
Parameters
+ + +
archiveResourcePointer to output the archive resource information to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetSdmcCid (u8out,
u32 length 
)
+
+ +

Gets the SDMC CID.

+
Parameters
+ + + +
outPointer to output the CID to.
lengthLength of the CID buffer. (should be 0x10)
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetSdmcCtrRootPath (u8out,
u32 length 
)
+
+ +

Gets the CTR SDMC root path.

+
Parameters
+ + + +
outPointer to output the root path to.
lengthLength of the output buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetSdmcFatfsError (u32error)
+
+ +

Gets the last SDMC fatfs error.

+
Parameters
+ + +
errorPointer to output the error to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_GetSdmcLog (u8out,
u32 length 
)
+
+ +

Gets the SDMC log.

+
Parameters
+ + + +
outPointer to output the log to.
lengthLength of the log buffer.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetSdmcSpeedInfo (u32speedInfo)
+
+ +

Gets the SDMC speed info.

+
Parameters
+ + +
speedInfoPointer to output the speed info to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_GetSpecialContentIndex (u16index,
FS_MediaType mediaType,
u64 programId,
FS_SpecialContentType type 
)
+
+ +

Gets a special content's index.

+
Parameters
+ + + + + +
indexPointer to output the index to.
mediaTypeMedia type of the special content.
programIdProgram ID owning the special content.
typeType of special content.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_GetSpecialFileSize (u64fileSize)
+
+ +

Gets the size of a special file.

+
Parameters
+ + +
fileSizePointer to output the size to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_ImportIntegrityVerificationSeed (FS_IntegrityVerificationSeedseed)
+
+ +

Imports an integrity verification seed.

+
Parameters
+ + +
seedSeed to import.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_Initialize (Handle session)
+
+ +

Initializes a FSUSER session.

+
Parameters
+ + +
sessionThe handle of the FSUSER session to initialize.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_InitializeWithSdkVersion (Handle session,
u32 version 
)
+
+ +

Initializes a FSUSER session with an SDK version.

+
Parameters
+ + + +
sessionThe handle of the FSUSER session to initialize.
versionSDK version to initialize with.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_IsSdmcDetected (bool * detected)
+
+ +

Gets whether an SD card is detected.

+
Parameters
+ + +
detectedPointer to output the detection status to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_IsSdmcWritable (bool * writable)
+
+ +

Gets whether the SD card is writable.

+
Parameters
+ + +
detectedPointer to output the writable status to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_OpenArchive (FS_Archivearchive)
+
+ +

Opens an archive.

+
Parameters
+ + +
archiveArchive to open.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_OpenDirectory (Handleout,
FS_Archive archive,
FS_Path path 
)
+
+ +

Opens a directory.

+
Parameters
+ + + + +
outPointer to output the directory handle to.
archiveArchive containing the directory.
pathPath of the directory.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_OpenFile (Handleout,
FS_Archive archive,
FS_Path path,
u32 openFlags,
u32 attributes 
)
+
+ +

Opens a file.

+
Parameters
+ + + + + + +
outPointer to output the file handle to.
archiveArchive containing the file.
pathPath of the file.
openFlagsFlags to open the file with.
attributesAttributes of the file.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_OpenFileDirectly (Handleout,
FS_Archive archive,
FS_Path path,
u32 openFlags,
u32 attributes 
)
+
+ +

Opens a file directly.

+
Parameters
+ + + + + + +
outPointer to output the file handle to.
archiveArchive containing the file.
pathPath of the file.
openFlagsFlags to open the file with.
attributesAttributes of the file.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_QueryTotalQuotaSize (u64quotaSize,
u32 directories,
u32 files,
u32 fileSizeCount,
u64fileSizes 
)
+
+ +

Queries the total quota size of a save data archive.

+
Parameters
+ + + + + + +
quotaSizePointer to output the quota size to.
directoriesNumber of directories.
filesNumber of files.
fileSizeCountNumber of file sizes to provide.
fileSizesFile sizes to provide.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_ReadExtSaveDataIcon (u32bytesRead,
FS_ExtSaveDataInfo info,
u32 smdhSize,
u8smdh 
)
+
+ +

Reads the SMDH icon of ext save data.

+
Parameters
+ + + + + +
bytesReadPointer to output the number of bytes read to.
infoInfo of the save data.
smdhSizeSize of the save data SMDH.
smdhPointer to output SMDH data to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_ReadSpecialFile (u32bytesRead,
u64 fileOffset,
u32 size,
u8data 
)
+
+ +

Reads from a special file.

+
Parameters
+ + + + + +
bytesReadPointer to output the number of bytes read to.
fileOffsetOffset of the file.
sizeSize of the buffer.
dataBuffer to read to.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_RenameDirectory (FS_Archive srcArchive,
FS_Path srcPath,
FS_Archive dstArchive,
FS_Path dstPath 
)
+
+ +

Renames a directory.

+
Parameters
+ + + + + +
srcArchiveArchive containing the source directory.
srcPathPath of the source directory.
dstArchiveArchive containing the destination directory.
dstPathPath of the destination directory.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_RenameFile (FS_Archive srcArchive,
FS_Path srcPath,
FS_Archive dstArchive,
FS_Path dstPath 
)
+
+ +

Renames a file.

+
Parameters
+ + + + + +
srcArchiveArchive containing the source file.
srcPathPath of the source file.
dstArchiveArchive containing the destination file.
dstPathPath of the destination file.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_SetArchivePriority (FS_Archive archive,
u32 priority 
)
+
+ +

Sets an archive's priority.

+
Parameters
+ + + +
archiveArchive to use.
priorityPriority to set.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_SetCardSpiBaudRate (FS_CardSpiBaudRate baudRate)
+
+ +

Sets the CARDSPI baud rate.

+
Parameters
+ + +
baudRateBaud rate to set.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_SetCardSpiBusMode (FS_CardSpiBusMode busMode)
+
+ +

Sets the CARDSPI bus mode.

+
Parameters
+ + +
baudRateBus mode to set.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_SetCtrCardLatencyParameter (u64 latency,
bool emulateEndurance 
)
+
+ +

Configures CTRCARD latency emulation.

+
Parameters
+ + + +
latencyLatency to apply, in milliseconds.
emulateEnduranceWhether to emulate card endurance.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_SetPriority (u32 priority)
+
+ +

Sets the file system priority.

+
Parameters
+ + +
priorityPriority to set.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result FSUSER_SetSaveDataSecureValue (u64 value,
FS_SecureValueSlot slot,
u32 titleUniqueId,
u8 titleVariation 
)
+
+ +

Sets the save data secure value.

+
Parameters
+ + + + + +
valueSecure value to set.
slotSlot of the secure value.
titleUniqueIdUnique ID of the title. (default = 0)
titleVariationVariation of the title. (default = 0)
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
Result FSUSER_StartDeviceMoveAsDestination (FS_DeviceMoveContext context,
bool clear 
)
+
+ +

Initiates a device move as the destination device.

+
Parameters
+ + + +
contextContext to use.
clearWhether to clear the device's data first.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_StartDeviceMoveAsSource (FS_DeviceMoveContextcontext)
+
+ +

Initiates a device move as the source device.

+
Parameters
+ + +
contextPointer to output the context to.
+
+
+ +
+
+ +
+
+ + + + + + + + +
Result FSUSER_SwitchCleanupInvalidSaveData (bool enable)
+
+ +

Toggles cleaning up invalid save data.

+
Parameters
+ + +
Whetherto enable cleaning up invalid save data.
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
void fsUseSession (Handle session,
bool sdmc 
)
+
+ +

Sets the FSUSER session to use in the current thread.

+
Parameters
+ + + +
sessionThe handle of the FSUSER session to use.
sdmcWhen true, SDMC archive commands are redirected to this session too. Otherwise the default session is used.
+
+
+ +
+
+
+ + + + diff --git a/fs_8h_source.html b/fs_8h_source.html index 6abe4d0..bbf1255 100644 --- a/fs_8h_source.html +++ b/fs_8h_source.html @@ -90,8 +90,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
fs.h
-
1 /**
-
2  * @file FS.h
+Go to the documentation of this file.
1 /**
+
2  * @file fs.h
3  * @brief Filesystem Services
4  */
5 #pragma once
@@ -101,142 +101,142 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
9 /// Open flags.
10 enum
11 {
-
12  FS_OPEN_READ = BIT(0), ///< Open for reading.
-
13  FS_OPEN_WRITE = BIT(1), ///< Open for writing.
-
14  FS_OPEN_CREATE = BIT(2), ///< Create file.
+
12  FS_OPEN_READ = BIT(0), ///< Open for reading.
+
13  FS_OPEN_WRITE = BIT(1), ///< Open for writing.
+
14  FS_OPEN_CREATE = BIT(2), ///< Create file.
15 };
16 
17 /// Write flags.
18 enum
19 {
-
20  FS_WRITE_FLUSH = BIT(0), ///< Flush.
-
21  FS_WRITE_UPDATE_TIME = BIT(8), ///< Update file timestamp.
+
20  FS_WRITE_FLUSH = BIT(0), ///< Flush.
+
21  FS_WRITE_UPDATE_TIME = BIT(8), ///< Update file timestamp.
22 };
23 
24 /// Attribute flags.
25 enum
26 {
-
27  FS_ATTRIBUTE_READ_ONLY = BIT(0), ///< Read-only.
-
28  FS_ATTRIBUTE_ARCHIVE = BIT(8), ///< Archive.
-
29  FS_ATTRIBUTE_HIDDEN = BIT(16), ///< Hidden.
-
30  FS_ATTRIBUTE_DIRECTORY = BIT(24), ///< Directory.
+
27  FS_ATTRIBUTE_READ_ONLY = BIT(0), ///< Read-only.
+
28  FS_ATTRIBUTE_ARCHIVE = BIT(8), ///< Archive.
+
29  FS_ATTRIBUTE_HIDDEN = BIT(16), ///< Hidden.
+
30  FS_ATTRIBUTE_DIRECTORY = BIT(24), ///< Directory.
31 };
32 
33 /// Media types.
-
34 typedef enum
+
34 typedef enum
35 {
-
36  MEDIATYPE_NAND = 0, ///< NAND.
-
37  MEDIATYPE_SD = 1, ///< SD card.
-
38  MEDIATYPE_GAME_CARD = 2, ///< Game card.
-
39 } FS_MediaType;
+
36  MEDIATYPE_NAND = 0, ///< NAND.
+
37  MEDIATYPE_SD = 1, ///< SD card.
+
38  MEDIATYPE_GAME_CARD = 2, ///< Game card.
+
39 } FS_MediaType;
40 
41 /// Archive IDs.
-
42 typedef enum
+
42 typedef enum
43 {
-
44  ARCHIVE_ROMFS = 0x00000003, ///< RomFS archive.
-
45  ARCHIVE_SAVEDATA = 0x00000004, ///< Save data archive.
-
46  ARCHIVE_EXTDATA = 0x00000006, ///< Ext data archive.
-
47  ARCHIVE_SHARED_EXTDATA = 0x00000007, ///< Shared ext data archive.
-
48  ARCHIVE_SYSTEM_SAVEDATA = 0x00000008, ///< System save data archive.
-
49  ARCHIVE_SDMC = 0x00000009, ///< SDMC archive.
-
50  ARCHIVE_SDMC_WRITE_ONLY = 0x0000000A, ///< Write-only SDMC archive.
-
51  ARCHIVE_BOSS_EXTDATA = 0x12345678, ///< BOSS ext data archive.
-
52  ARCHIVE_CARD_SPIFS = 0x12345679, ///< Card SPI FS archive.
-
53  ARCHIVE_EXTDATA_AND_BOSS_EXTDATA = 0x1234567B, ///< Ext data and BOSS ext data archive.
-
54  ARCHIVE_SYSTEM_SAVEDATA2 = 0x1234567C, ///< System save data archive.
-
55  ARCHIVE_NAND_RW = 0x1234567D, ///< Read-write NAND archive.
-
56  ARCHIVE_NAND_RO = 0x1234567E, ///< Read-only NAND archive.
-
57  ARCHIVE_NAND_RO_WRITE_ACCESS = 0x1234567F, ///< Read-only write access NAND archive.
-
58  ARCHIVE_SAVEDATA_AND_CONTENT = 0x2345678A, ///< User save data and ExeFS/RomFS archive.
-
59  ARCHIVE_SAVEDATA_AND_CONTENT2 = 0x2345678E, ///< User save data and ExeFS/RomFS archive (only ExeFS for fs:LDR).
-
60  ARCHIVE_NAND_CTR_FS = 0x567890AB, ///< NAND CTR FS archive.
-
61  ARCHIVE_TWL_PHOTO = 0x567890AC, ///< TWL PHOTO archive.
-
62  ARCHIVE_NAND_TWL_FS = 0x567890AE, ///< NAND TWL FS archive.
-
63  ARCHIVE_NAND_W_FS = 0x567890AF, ///< NAND W FS archive.
-
64  ARCHIVE_GAMECARD_SAVEDATA = 0x567890B1, ///< Game card save data archive.
-
65  ARCHIVE_USER_SAVEDATA = 0x567890B2, ///< User save data archive.
-
66  ARCHIVE_DEMO_SAVEDATA = 0x567890B4, ///< Demo save data archive.
-
67 } FS_ArchiveID;
+
44  ARCHIVE_ROMFS = 0x00000003, ///< RomFS archive.
+
45  ARCHIVE_SAVEDATA = 0x00000004, ///< Save data archive.
+
46  ARCHIVE_EXTDATA = 0x00000006, ///< Ext data archive.
+
47  ARCHIVE_SHARED_EXTDATA = 0x00000007, ///< Shared ext data archive.
+
48  ARCHIVE_SYSTEM_SAVEDATA = 0x00000008, ///< System save data archive.
+
49  ARCHIVE_SDMC = 0x00000009, ///< SDMC archive.
+
50  ARCHIVE_SDMC_WRITE_ONLY = 0x0000000A, ///< Write-only SDMC archive.
+
51  ARCHIVE_BOSS_EXTDATA = 0x12345678, ///< BOSS ext data archive.
+
52  ARCHIVE_CARD_SPIFS = 0x12345679, ///< Card SPI FS archive.
+
53  ARCHIVE_EXTDATA_AND_BOSS_EXTDATA = 0x1234567B, ///< Ext data and BOSS ext data archive.
+
54  ARCHIVE_SYSTEM_SAVEDATA2 = 0x1234567C, ///< System save data archive.
+
55  ARCHIVE_NAND_RW = 0x1234567D, ///< Read-write NAND archive.
+
56  ARCHIVE_NAND_RO = 0x1234567E, ///< Read-only NAND archive.
+
57  ARCHIVE_NAND_RO_WRITE_ACCESS = 0x1234567F, ///< Read-only write access NAND archive.
+
58  ARCHIVE_SAVEDATA_AND_CONTENT = 0x2345678A, ///< User save data and ExeFS/RomFS archive.
+
59  ARCHIVE_SAVEDATA_AND_CONTENT2 = 0x2345678E, ///< User save data and ExeFS/RomFS archive (only ExeFS for fs:LDR).
+
60  ARCHIVE_NAND_CTR_FS = 0x567890AB, ///< NAND CTR FS archive.
+
61  ARCHIVE_TWL_PHOTO = 0x567890AC, ///< TWL PHOTO archive.
+
62  ARCHIVE_NAND_TWL_FS = 0x567890AE, ///< NAND TWL FS archive.
+
63  ARCHIVE_NAND_W_FS = 0x567890AF, ///< NAND W FS archive.
+
64  ARCHIVE_GAMECARD_SAVEDATA = 0x567890B1, ///< Game card save data archive.
+
65  ARCHIVE_USER_SAVEDATA = 0x567890B2, ///< User save data archive.
+
66  ARCHIVE_DEMO_SAVEDATA = 0x567890B4, ///< Demo save data archive.
+
67 } FS_ArchiveID;
68 
69 /// Path types.
-
70 typedef enum
+
70 typedef enum
71 {
-
72  PATH_INVALID = 0, ///< Invalid path.
-
73  PATH_EMPTY = 1, ///< Empty path.
-
74  PATH_BINARY = 2, ///< Binary path. Meaning is per-archive.
-
75  PATH_ASCII = 3, ///< ASCII text path.
-
76  PATH_UTF16 = 4, ///< UTF-16 text path.
-
77 } FS_PathType;
+
72  PATH_INVALID = 0, ///< Invalid path.
+
73  PATH_EMPTY = 1, ///< Empty path.
+
74  PATH_BINARY = 2, ///< Binary path. Meaning is per-archive.
+
75  PATH_ASCII = 3, ///< ASCII text path.
+
76  PATH_UTF16 = 4, ///< UTF-16 text path.
+
77 } FS_PathType;
78 
79 /// Secure value slot.
-
80 typedef enum
+
80 typedef enum
81 {
-
82  SECUREVALUE_SLOT_SD = 0x1000, ///< SD application.
-
83 } FS_SecureValueSlot;
+
82  SECUREVALUE_SLOT_SD = 0x1000, ///< SD application.
+
84 
85 /// Card SPI baud rate.
-
86 typedef enum
+
86 typedef enum
87 {
-
88  BAUDRATE_512KHZ = 0, ///< 512KHz.
-
89  BAUDRATE_1MHZ = 1, ///< 1MHz.
-
90  BAUDRATE_2MHZ = 2, ///< 2MHz.
-
91  BAUDRATE_4MHZ = 3, ///< 4MHz.
-
92  BAUDRATE_8MHZ = 4, ///< 8MHz.
-
93  BAUDRATE_16MHZ = 5, ///< 16MHz.
-
94 } FS_CardSpiBaudRate;
+
88  BAUDRATE_512KHZ = 0, ///< 512KHz.
+
89  BAUDRATE_1MHZ = 1, ///< 1MHz.
+
90  BAUDRATE_2MHZ = 2, ///< 2MHz.
+
91  BAUDRATE_4MHZ = 3, ///< 4MHz.
+
92  BAUDRATE_8MHZ = 4, ///< 8MHz.
+
93  BAUDRATE_16MHZ = 5, ///< 16MHz.
+
95 
96 /// Card SPI bus mode.
-
97 typedef enum
+
97 typedef enum
98 {
-
99  BUSMODE_1BIT = 0, ///< 1-bit.
-
100  BUSMODE_4BIT = 1, ///< 4-bit.
-
101 } FS_CardSpiBusMode;
+
99  BUSMODE_1BIT = 0, ///< 1-bit.
+
100  BUSMODE_4BIT = 1, ///< 4-bit.
+
102 
103 /// Card SPI bus mode.
-
104 typedef enum
+
104 typedef enum
105 {
-
106  SPECIALCONTENT_UPDATE = 1, ///< Update.
-
107  SPECIALCONTENT_MANUAL = 2, ///< Manual.
-
108  SPECIALCONTENT_DLP_CHILD = 3, ///< DLP child.
-
109 } FS_SpecialContentType;
+
106  SPECIALCONTENT_UPDATE = 1, ///< Update.
+
107  SPECIALCONTENT_MANUAL = 2, ///< Manual.
+
108  SPECIALCONTENT_DLP_CHILD = 3, ///< DLP child.
+
110 
-
111 typedef enum
+
111 typedef enum
112 {
-
113  CARD_CTR = 0, ///< CTR card.
-
114  CARD_TWL = 1, ///< TWL card.
-
115 } FS_CardType;
+
113  CARD_CTR = 0, ///< CTR card.
+
114  CARD_TWL = 1, ///< TWL card.
+
115 } FS_CardType;
116 
117 /// FS control actions.
-
118 typedef enum
+
118 typedef enum
119 {
120  FS_ACTION_UNKNOWN = 0,
-
121 } FS_Action;
+
121 } FS_Action;
122 
123 /// Archive control actions.
-
124 typedef enum
+
124 typedef enum
125 {
-
126  ARCHIVE_ACTION_COMMIT_SAVE_DATA = 0, ///< Commits save data changes. No inputs/outputs.
-
127  ARCHIVE_ACTION_GET_TIMESTAMP = 1, ///< Retrieves a file's last-modified timestamp. In: "u16*, UTF-16 Path", Out: "u64, Time Stamp".
-
128 } FS_ArchiveAction;
+
126  ARCHIVE_ACTION_COMMIT_SAVE_DATA = 0, ///< Commits save data changes. No inputs/outputs.
+
127  ARCHIVE_ACTION_GET_TIMESTAMP = 1, ///< Retrieves a file's last-modified timestamp. In: "u16*, UTF-16 Path", Out: "u64, Time Stamp".
+
129 
130 /// Secure save control actions.
-
131 typedef enum
+
131 typedef enum
132 {
-
133  SECURESAVE_ACTION_DELETE = 0, ///< Deletes a save's secure value. In: "u64, ((SecureValueSlot << 32) | (TitleUniqueId << 8) | TitleVariation)", Out: "u8, Value Existed"
-
134  SECURESAVE_ACTION_FORMAT = 1, ///< Formats a save. No inputs/outputs.
-
135 } FS_SecureSaveAction;
+
133  SECURESAVE_ACTION_DELETE = 0, ///< Deletes a save's secure value. In: "u64, ((SecureValueSlot << 32) | (TitleUniqueId << 8) | TitleVariation)", Out: "u8, Value Existed"
+
134  SECURESAVE_ACTION_FORMAT = 1, ///< Formats a save. No inputs/outputs.
+
136 
137 /// File control actions.
-
138 typedef enum
+
138 typedef enum
139 {
140  FILE_ACTION_UNKNOWN = 0,
-
141 } FS_FileAction;
+
141 } FS_FileAction;
142 
143 /// Directory control actions.
-
144 typedef enum
+
144 typedef enum
145 {
146  DIRECTORY_ACTION_UNKNOWN = 0,
-
147 } FS_DirectoryAction;
+
148 
149 /// Directory entry.
150 typedef struct
@@ -263,7 +263,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
171 typedef struct
172 {
173  u64 programId; ///< Program ID.
-
174  FS_MediaType mediaType : 8; ///< Media type.
+
174  FS_MediaType mediaType : 8; ///< Media type.
175  u8 padding[7]; ///< Padding.
177 
@@ -285,7 +285,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
193 /// Ext save data information.
194 typedef struct PACKED
195 {
-
196  FS_MediaType mediaType : 8; ///< Media type.
+
196  FS_MediaType mediaType : 8; ///< Media type.
197  u8 unknown; ///< Unknown.
198  u16 reserved1; ///< Reserved.
199  u64 saveId; ///< Save ID.
@@ -295,7 +295,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
203 /// System save data information.
204 typedef struct
205 {
-
206  FS_MediaType mediaType : 8; ///< Media type.
+
206  FS_MediaType mediaType : 8; ///< Media type.
207  u8 unknown; ///< Unknown.
208  u16 reserved; ///< Reserved.
209  u32 saveId; ///< Save ID.
@@ -311,7 +311,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
219 /// FS path.
220 typedef struct
221 {
-
222  FS_PathType type; ///< FS path type.
+
222  FS_PathType type; ///< FS path type.
223  u32 size; ///< FS path size.
224  const void* data; ///< Pointer to FS path data.
225 } FS_Path;
@@ -325,20 +325,20 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
233 } FS_Archive;
234 
235 /// Initializes FS.
-
236 Result fsInit(void);
+
236 Result fsInit(void);
237 
238 /// Exits FS.
-
239 void fsExit(void);
+
239 void fsExit(void);
240 
241 /**
242  * @brief Sets the FSUSER session to use in the current thread.
243  * @param session The handle of the FSUSER session to use.
244  * @param sdmc When true, SDMC archive commands are redirected to this session too. Otherwise the default session is used.
245  */
-
246 void fsUseSession(Handle session, bool sdmc);
+
246 void fsUseSession(Handle session, bool sdmc);
247 
248 /// Disables the FSUSER session override in the current thread.
-
249 void fsEndUseSession(void);
+
249 void fsEndUseSession(void);
250 
251 /**
252  * @brief Creates an FS_Path instance.
@@ -346,13 +346,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
254  * @param path Path to use.
255  * @return The created FS_Path instance.
256  */
-
257 FS_Path fsMakePath(FS_PathType type, const void* path);
+
257 FS_Path fsMakePath(FS_PathType type, const void* path);
258 
259 /**
260  * @brief Gets the current FS session handle.
261  * @return The current FS session handle.
262  */
-
263 Handle* fsGetSessionHandle(void);
+
264 
265 /**
266  * @brief Performs a control operation on the filesystem.
@@ -362,13 +362,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
270  * @param output Buffer to write output to.
271  * @param outputSize Size of the output.
272  */
-
273 Result FSUSER_Control(FS_Action action, void* input, u32 inputSize, void* output, u32 outputSize);
+
273 Result FSUSER_Control(FS_Action action, void* input, u32 inputSize, void* output, u32 outputSize);
274 
275 /**
276  * @brief Initializes a FSUSER session.
277  * @param session The handle of the FSUSER session to initialize.
278  */
-
279 Result FSUSER_Initialize(Handle session);
+
280 
281 /**
282  * @brief Opens a file.
@@ -378,7 +378,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
286  * @param openFlags Flags to open the file with.
287  * @param attributes Attributes of the file.
288  */
-
289 Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
+
289 Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
290 
291 /**
292  * @brief Opens a file directly.
@@ -388,14 +388,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
296  * @param openFlags Flags to open the file with.
297  * @param attributes Attributes of the file.
298  */
-
299 Result FSUSER_OpenFileDirectly(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
+
299 Result FSUSER_OpenFileDirectly(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
300 
301 /**
302  * @brief Deletes a file.
303  * @param archive Archive containing the file.
304  * @param path Path of the file.
305  */
-
306 Result FSUSER_DeleteFile(FS_Archive archive, FS_Path path);
+
307 
308 /**
309  * @brief Renames a file.
@@ -404,21 +404,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
312  * @param dstArchive Archive containing the destination file.
313  * @param dstPath Path of the destination file.
314  */
-
315 Result FSUSER_RenameFile(FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath);
+
315 Result FSUSER_RenameFile(FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath);
316 
317 /**
318  * @brief Deletes a directory, failing if it is not empty.
319  * @param archive Archive containing the directory.
320  * @param path Path of the directory.
321  */
-
322 Result FSUSER_DeleteDirectory(FS_Archive archive, FS_Path path);
+
323 
324 /**
325  * @brief Deletes a directory, also deleting its contents.
326  * @param archive Archive containing the directory.
327  * @param path Path of the directory.
328  */
-
329 Result FSUSER_DeleteDirectoryRecursively(FS_Archive archive, FS_Path path);
+
330 
331 /**
332  * @brief Creates a file.
@@ -427,7 +427,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
335  * @param attributes Attributes of the file.
336  * @param fileSize Size of the file.
337  */
-
338 Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize);
+
338 Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize);
339 
340 /**
341  * @brief Creates a directory
@@ -435,7 +435,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
343  * @param path Path of the directory.
344  * @param attributes Attributes of the directory.
345  */
-
346 Result FSUSER_CreateDirectory(FS_Archive archive, FS_Path path, u32 attributes);
+
346 Result FSUSER_CreateDirectory(FS_Archive archive, FS_Path path, u32 attributes);
347 
348 /**
349  * @brief Renames a directory.
@@ -444,7 +444,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
352  * @param dstArchive Archive containing the destination directory.
353  * @param dstPath Path of the destination directory.
354  */
-
355 Result FSUSER_RenameDirectory(FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath);
+
355 Result FSUSER_RenameDirectory(FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath);
356 
357 /**
358  * @brief Opens a directory.
@@ -452,13 +452,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
360  * @param archive Archive containing the directory.
361  * @param path Path of the directory.
362  */
-
363 Result FSUSER_OpenDirectory(Handle *out, FS_Archive archive, FS_Path path);
+
364 
365 /**
366  * @brief Opens an archive.
367  * @param archive Archive to open.
368  */
-
369 Result FSUSER_OpenArchive(FS_Archive* archive);
+
370 
371 /**
372  * @brief Performs a control operation on an archive.
@@ -469,139 +469,139 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
377  * @param output Buffer to write output to.
378  * @param outputSize Size of the output.
379  */
-
380 Result FSUSER_ControlArchive(FS_Archive archive, FS_ArchiveAction action, void* input, u32 inputSize, void* output, u32 outputSize);
+
380 Result FSUSER_ControlArchive(FS_Archive archive, FS_ArchiveAction action, void* input, u32 inputSize, void* output, u32 outputSize);
381 
382 /**
383  * @brief Closes an archive.
384  * @param archive Archive to close.
385  */
-
386 Result FSUSER_CloseArchive(FS_Archive* archive);
+
387 
388 /**
389  * @brief Gets the number of free bytes within an archive.
390  * @param freeBytes Pointer to output the free bytes to.
391  * @param archive Archive to check.
392  */
-
393 Result FSUSER_GetFreeBytes(u64* freeBytes, FS_Archive archive);
+
393 Result FSUSER_GetFreeBytes(u64* freeBytes, FS_Archive archive);
394 
395 /**
396  * @brief Gets the inserted card type.
397  * @param type Pointer to output the card type to.
398  */
-
399 Result FSUSER_GetCardType(FS_CardType* type);
+
400 
401 /**
402  * @brief Gets the SDMC archive resource information.
403  * @param archiveResource Pointer to output the archive resource information to.
404  */
-
405 Result FSUSER_GetSdmcArchiveResource(FS_ArchiveResource* archiveResource);
+
406 
407 /**
408  * @brief Gets the NAND archive resource information.
409  * @param archiveResource Pointer to output the archive resource information to.
410  */
-
411 Result FSUSER_GetNandArchiveResource(FS_ArchiveResource* archiveResource);
+
412 
413 /**
414  * @brief Gets the last SDMC fatfs error.
415  * @param error Pointer to output the error to.
416  */
-
417 Result FSUSER_GetSdmcFatfsError(u32* error);
+
418 
419 /**
420  * @brief Gets whether an SD card is detected.
421  * @param detected Pointer to output the detection status to.
422  */
-
423 Result FSUSER_IsSdmcDetected(bool *detected);
+
423 Result FSUSER_IsSdmcDetected(bool *detected);
424 
425 /**
426  * @brief Gets whether the SD card is writable.
427  * @param detected Pointer to output the writable status to.
428  */
-
429 Result FSUSER_IsSdmcWritable(bool *writable);
+
429 Result FSUSER_IsSdmcWritable(bool *writable);
430 
431 /**
432  * @brief Gets the SDMC CID.
433  * @param out Pointer to output the CID to.
434  * @param length Length of the CID buffer. (should be 0x10)
435  */
-
436 Result FSUSER_GetSdmcCid(u8* out, u32 length);
+
436 Result FSUSER_GetSdmcCid(u8* out, u32 length);
437 
438 /**
439  * @brief Gets the NAND CID.
440  * @param out Pointer to output the CID to.
441  * @param length Length of the CID buffer. (should be 0x10)
442  */
-
443 Result FSUSER_GetNandCid(u8* out, u32 length);
+
443 Result FSUSER_GetNandCid(u8* out, u32 length);
444 
445 /**
446  * @brief Gets the SDMC speed info.
447  * @param speedInfo Pointer to output the speed info to.
448  */
-
449 Result FSUSER_GetSdmcSpeedInfo(u32 *speedInfo);
+
450 
451 /**
452  * @brief Gets the NAND speed info.
453  * @param speedInfo Pointer to output the speed info to.
454  */
-
455 Result FSUSER_GetNandSpeedInfo(u32 *speedInfo);
+
456 
457 /**
458  * @brief Gets the SDMC log.
459  * @param out Pointer to output the log to.
460  * @param length Length of the log buffer.
461  */
-
462 Result FSUSER_GetSdmcLog(u8* out, u32 length);
+
462 Result FSUSER_GetSdmcLog(u8* out, u32 length);
463 
464 /**
465  * @brief Gets the NAND log.
466  * @param out Pointer to output the log to.
467  * @param length Length of the log buffer.
468  */
-
469 Result FSUSER_GetNandLog(u8* out, u32 length);
+
469 Result FSUSER_GetNandLog(u8* out, u32 length);
470 
471 /// Clears the SDMC log.
-
472 Result FSUSER_ClearSdmcLog(void);
+
473 
474 /// Clears the NAND log.
-
475 Result FSUSER_ClearNandLog(void);
+
476 
477 /**
478  * @brief Gets whether a card is inserted.
479  * @param inserted Pointer to output the insertion status to.
480  */
-
481 Result FSUSER_CardSlotIsInserted(bool* inserted);
+
481 Result FSUSER_CardSlotIsInserted(bool* inserted);
482 
483 /**
484  * @brief Powers on the card slot.
485  * @param status Pointer to output the power status to.
486  */
-
487 Result FSUSER_CardSlotPowerOn(bool* status);
+
487 Result FSUSER_CardSlotPowerOn(bool* status);
488 
489 /**
490  * @brief Powers off the card slot.
491  * @param status Pointer to output the power status to.
492  */
-
493 Result FSUSER_CardSlotPowerOff(bool* status);
+
493 Result FSUSER_CardSlotPowerOff(bool* status);
494 
495 /**
496  * @brief Gets the card's power status.
497  * @param status Pointer to output the power status to.
498  */
-
499 Result FSUSER_CardSlotGetCardIFPowerStatus(bool* status);
+
500 
501 /**
502  * @brief Executes a CARDNOR direct command.
503  * @param commandId ID of the command.
504  */
-
505 Result FSUSER_CardNorDirectCommand(u8 commandId);
+
506 
507 /**
508  * @brief Executes a CARDNOR direct command with an address.
509  * @param commandId ID of the command.
510  * @param address Address to provide.
511  */
-
512 Result FSUSER_CardNorDirectCommandWithAddress(u8 commandId, u32 address);
+
513 
514 /**
515  * @brief Executes a CARDNOR direct read.
@@ -609,7 +609,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
517  * @param size Size of the output buffer.
518  * @param output Output buffer.
519  */
-
520 Result FSUSER_CardNorDirectRead(u8 commandId, u32 size, u8* output);
+
520 Result FSUSER_CardNorDirectRead(u8 commandId, u32 size, u8* output);
521 
522 /**
523  * @brief Executes a CARDNOR direct read with an address.
@@ -618,7 +618,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
526  * @param size Size of the output buffer.
527  * @param output Output buffer.
528  */
-
529 Result FSUSER_CardNorDirectReadWithAddress(u8 commandId, u32 address, u32 size, u8* output);
+
529 Result FSUSER_CardNorDirectReadWithAddress(u8 commandId, u32 address, u32 size, u8* output);
530 
531 /**
532  * @brief Executes a CARDNOR direct write.
@@ -626,7 +626,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
534  * @param size Size of the input buffer.
535  * @param output Input buffer.
536  */
-
537 Result FSUSER_CardNorDirectWrite(u8 commandId, u32 size, u8* input);
+
537 Result FSUSER_CardNorDirectWrite(u8 commandId, u32 size, u8* input);
538 
539 /**
540  * @brief Executes a CARDNOR direct write with an address.
@@ -635,7 +635,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
543  * @param size Size of the input buffer.
544  * @param input Input buffer.
545  */
-
546 Result FSUSER_CardNorDirectWriteWithAddress(u8 commandId, u32 address, u32 size, u8* input);
+
546 Result FSUSER_CardNorDirectWriteWithAddress(u8 commandId, u32 address, u32 size, u8* input);
547 
548 /**
549  * @brief Executes a CARDNOR 4xIO direct read.
@@ -644,7 +644,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
552  * @param size Size of the output buffer.
553  * @param output Output buffer.
554  */
-
555 Result FSUSER_CardNorDirectRead_4xIO(u8 commandId, u32 address, u32 size, u8* output);
+
555 Result FSUSER_CardNorDirectRead_4xIO(u8 commandId, u32 address, u32 size, u8* output);
556 
557 /**
558  * @brief Executes a CARDNOR direct CPU write without verify.
@@ -652,42 +652,42 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
560  * @param size Size of the input buffer.
561  * @param output Input buffer.
562  */
-
563 Result FSUSER_CardNorDirectCpuWriteWithoutVerify(u32 address, u32 size, u8* input);
+
564 
565 /**
566  * @brief Executes a CARDNOR direct sector erase without verify.
567  * @param address Address to provide.
568  */
-
569 Result FSUSER_CardNorDirectSectorEraseWithoutVerify(u32 address);
+
570 
571 /**
572  * @brief Gets a process's product info.
573  * @param info Pointer to output the product info to.
574  * @param processId ID of the process.
575  */
-
576 Result FSUSER_GetProductInfo(FS_ProductInfo* info, u32 processId);
+
577 
578 /**
579  * @brief Gets a process's program launch info.
580  * @param info Pointer to output the program launch info to.
581  * @param processId ID of the process.
582  */
-
583 Result FSUSER_GetProgramLaunchInfo(FS_ProgramInfo* info, u32 processId);
+
584 
585 /**
586  * @brief Sets the CARDSPI baud rate.
587  * @param baudRate Baud rate to set.
588  */
-
589 Result FSUSER_SetCardSpiBaudRate(FS_CardSpiBaudRate baudRate);
+
590 
591 /**
592  * @brief Sets the CARDSPI bus mode.
593  * @param baudRate Bus mode to set.
594  */
-
595 Result FSUSER_SetCardSpiBusMode(FS_CardSpiBusMode busMode);
+
596 
597 /// Sends initialization info to ARM9.
-
598 Result FSUSER_SendInitializeInfoTo9(void);
+
599 
600 /**
601  * @brief Gets a special content's index.
@@ -696,7 +696,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
604  * @param programId Program ID owning the special content.
605  * @param type Type of special content.
606  */
-
607 Result FSUSER_GetSpecialContentIndex(u16* index, FS_MediaType mediaType, u64 programId, FS_SpecialContentType type);
+
608 
609 /**
610  * @brief Gets the legacy ROM header of a program.
@@ -704,7 +704,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
612  * @param programId ID of the program.
613  * @param header Pointer to output the legacy ROM header to. (size = 0x3B4)
614  */
-
615 Result FSUSER_GetLegacyRomHeader(FS_MediaType mediaType, u64 programId, u8* header);
+
615 Result FSUSER_GetLegacyRomHeader(FS_MediaType mediaType, u64 programId, u8* header);
616 
617 /**
618  * @brief Gets the legacy banner data of a program.
@@ -712,7 +712,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
620  * @param programId ID of the program.
621  * @param header Pointer to output the legacy banner data to. (size = 0x23C0)
622  */
-
623 Result FSUSER_GetLegacyBannerData(FS_MediaType mediaType, u64 programId, u8* banner);
+
623 Result FSUSER_GetLegacyBannerData(FS_MediaType mediaType, u64 programId, u8* banner);
624 
625 /**
626  * @brief Checks a process's authority to access a save data archive.
@@ -721,7 +721,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
629  * @param saveId ID of the save data.
630  * @param processId ID of the process to check.
631  */
-
632 Result FSUSER_CheckAuthorityToAccessExtSaveData(bool* access, FS_MediaType mediaType, u64 saveId, u32 processId);
+
632 Result FSUSER_CheckAuthorityToAccessExtSaveData(bool* access, FS_MediaType mediaType, u64 saveId, u32 processId);
633 
634 /**
635  * @brief Queries the total quota size of a save data archive.
@@ -731,25 +731,25 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
639  * @param fileSizeCount Number of file sizes to provide.
640  * @param fileSizes File sizes to provide.
641  */
-
642 Result FSUSER_QueryTotalQuotaSize(u64* quotaSize, u32 directories, u32 files, u32 fileSizeCount, u64* fileSizes);
+
642 Result FSUSER_QueryTotalQuotaSize(u64* quotaSize, u32 directories, u32 files, u32 fileSizeCount, u64* fileSizes);
643 
644 /**
645  * @brief Abnegates an access right.
646  * @param accessRight Access right to abnegate.
647  */
-
648 Result FSUSER_AbnegateAccessRight(u32 accessRight);
+
649 
650 /// Deletes the 3DS SDMC root.
-
651 Result FSUSER_DeleteSdmcRoot(void);
+
652 
653 /// Deletes all ext save data on the NAND.
-
654 Result FSUSER_DeleteAllExtSaveDataOnNand(void);
+
655 
656 /// Initializes the CTR file system.
-
657 Result FSUSER_InitializeCtrFileSystem(void);
+
658 
659 /// Creates the FS seed.
-
660 Result FSUSER_CreateSeed(void);
+
661 
662 /**
663  * @brief Retrieves archive format info.
@@ -760,7 +760,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
668  * @param archiveId ID of the archive.
669  * @param path Path of the archive.
670  */
-
671 Result FSUSER_GetFormatInfo(u32* totalSize, u32* directories, u32* files, bool* duplicateData, FS_ArchiveID archiveId, FS_Path path);
+
671 Result FSUSER_GetFormatInfo(u32* totalSize, u32* directories, u32* files, bool* duplicateData, FS_ArchiveID archiveId, FS_Path path);
672 
673 /**
674  * @brief Gets the legacy ROM header of a program.
@@ -769,33 +769,33 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
677  * @param programId ID of the program.
678  * @param header Pointer to output the legacy ROM header to.
679  */
-
680 Result FSUSER_GetLegacyRomHeader2(u32 headerSize, FS_MediaType mediaType, u64 programId, u8* header);
+
680 Result FSUSER_GetLegacyRomHeader2(u32 headerSize, FS_MediaType mediaType, u64 programId, u8* header);
681 
682 /**
683  * @brief Gets the CTR SDMC root path.
684  * @param out Pointer to output the root path to.
685  * @param length Length of the output buffer.
686  */
-
687 Result FSUSER_GetSdmcCtrRootPath(u8* out, u32 length);
+
687 Result FSUSER_GetSdmcCtrRootPath(u8* out, u32 length);
688 
689 /**
690  * @brief Gets an archive's resource information.
691  * @param archiveResource Pointer to output the archive resource information to.
692  * @param mediaType Media type to check.
693  */
-
694 Result FSUSER_GetArchiveResource(FS_ArchiveResource* archiveResource, FS_MediaType mediaType);
+
695 
696 /**
697  * @brief Exports the integrity verification seed.
698  * @param seed Pointer to output the seed to.
699  */
-
700 Result FSUSER_ExportIntegrityVerificationSeed(FS_IntegrityVerificationSeed* seed);
+
701 
702 /**
703  * @brief Imports an integrity verification seed.
704  * @param seed Seed to import.
705  */
-
706 Result FSUSER_ImportIntegrityVerificationSeed(FS_IntegrityVerificationSeed* seed);
+
707 
708 /**
709  * @brief Formats save data.
@@ -808,7 +808,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
716  * @param fileBuckets File hash tree bucket count.
717  * @param duplicateData Whether to store an internal duplicate of the data.
718  */
-
719 Result FSUSER_FormatSaveData(FS_ArchiveID archiveId, FS_Path path, u32 blocks, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData);
+
719 Result FSUSER_FormatSaveData(FS_ArchiveID archiveId, FS_Path path, u32 blocks, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData);
720 
721 /**
722  * @brief Gets the legacy sub banner data of a program.
@@ -817,7 +817,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
725  * @param programId ID of the program.
726  * @param header Pointer to output the legacy sub banner data to.
727  */
-
728 Result FSUSER_GetLegacySubBannerData(u32 bannerSize, FS_MediaType mediaType, u64 programId, u8* banner);
+
728 Result FSUSER_GetLegacySubBannerData(u32 bannerSize, FS_MediaType mediaType, u64 programId, u8* banner);
729 
730 /**
731  * @brief Reads from a special file.
@@ -826,13 +826,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
734  * @param size Size of the buffer.
735  * @param data Buffer to read to.
736  */
-
737 Result FSUSER_ReadSpecialFile(u32* bytesRead, u64 fileOffset, u32 size, u8* data);
+
737 Result FSUSER_ReadSpecialFile(u32* bytesRead, u64 fileOffset, u32 size, u8* data);
738 
739 /**
740  * @brief Gets the size of a special file.
741  * @param fileSize Pointer to output the size to.
742  */
-
743 Result FSUSER_GetSpecialFileSize(u64* fileSize);
+
744 
745 /**
746  * @brief Creates ext save data.
@@ -843,13 +843,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
751  * @param smdhSize Size of the save data's SMDH data.
752  * @param smdh SMDH data.
753  */
-
754 Result FSUSER_CreateExtSaveData(FS_ExtSaveDataInfo info, u32 directories, u32 files, u64 sizeLimit, u32 smdhSize, u8* smdh);
+
754 Result FSUSER_CreateExtSaveData(FS_ExtSaveDataInfo info, u32 directories, u32 files, u64 sizeLimit, u32 smdhSize, u8* smdh);
755 
756 /**
757  * @brief Deletes ext save data.
758  * @param info Info of the save data.
759  */
-
760 Result FSUSER_DeleteExtSaveData(FS_ExtSaveDataInfo info);
+
761 
762 /**
763  * @brief Reads the SMDH icon of ext save data.
@@ -858,7 +858,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
766  * @param smdhSize Size of the save data SMDH.
767  * @param smdh Pointer to output SMDH data to.
768  */
-
769 Result FSUSER_ReadExtSaveDataIcon(u32* bytesRead, FS_ExtSaveDataInfo info, u32 smdhSize, u8* smdh);
+
769 Result FSUSER_ReadExtSaveDataIcon(u32* bytesRead, FS_ExtSaveDataInfo info, u32 smdhSize, u8* smdh);
770 
771 /**
772  * @brief Gets an ext data archive's block information.
@@ -867,7 +867,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
775  * @param blockSize Pointer to output the block size to.
776  * @param info Info of the save data.
777  */
-
778 Result FSUSER_GetExtDataBlockSize(u64* totalBlocks, u64* freeBlocks, u32* blockSize, FS_ExtSaveDataInfo info);
+
778 Result FSUSER_GetExtDataBlockSize(u64* totalBlocks, u64* freeBlocks, u32* blockSize, FS_ExtSaveDataInfo info);
779 
780 /**
781  * @brief Enumerates ext save data.
@@ -878,7 +878,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
786  * @param shared Whether to enumerate shared ext save data.
787  * @param ids Pointer to output IDs to.
788  */
-
789 Result FSUSER_EnumerateExtSaveData(u32* idsWritten, u32 idsSize, FS_MediaType mediaType, u32 idSize, bool shared, u8* ids);
+
789 Result FSUSER_EnumerateExtSaveData(u32* idsWritten, u32 idsSize, FS_MediaType mediaType, u32 idSize, bool shared, u8* ids);
790 
791 /**
792  * @brief Creates system save data.
@@ -891,53 +891,53 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
799  * @param fileBuckets File hash tree bucket count.
800  * @param duplicateData Whether to store an internal duplicate of the data.
801  */
-
802 Result FSUSER_CreateSystemSaveData(FS_SystemSaveDataInfo info, u32 totalSize, u32 blockSize, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData);
+
802 Result FSUSER_CreateSystemSaveData(FS_SystemSaveDataInfo info, u32 totalSize, u32 blockSize, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData);
803 
804 /**
805  * @brief Deletes system save data.
806  * @param info Info of the save data.
807  */
-
808 Result FSUSER_DeleteSystemSaveData(FS_SystemSaveDataInfo info);
+
809 
810 /**
811  * @brief Initiates a device move as the source device.
812  * @param context Pointer to output the context to.
813  */
-
814 Result FSUSER_StartDeviceMoveAsSource(FS_DeviceMoveContext* context);
+
815 
816 /**
817  * @brief Initiates a device move as the destination device.
818  * @param context Context to use.
819  * @param clear Whether to clear the device's data first.
820  */
-
821 Result FSUSER_StartDeviceMoveAsDestination(FS_DeviceMoveContext context, bool clear);
+
822 
823 /**
824  * @brief Sets an archive's priority.
825  * @param archive Archive to use.
826  * @param priority Priority to set.
827  */
-
828 Result FSUSER_SetArchivePriority(FS_Archive archive, u32 priority);
+
829 
830 /**
831  * @brief Gets an archive's priority.
832  * @param priority Pointer to output the priority to.
833  * @param archive Archive to use.
834  */
-
835 Result FSUSER_GetArchivePriority(u32* priority, FS_Archive archive);
+
835 Result FSUSER_GetArchivePriority(u32* priority, FS_Archive archive);
836 
837 /**
838  * @brief Configures CTRCARD latency emulation.
839  * @param latency Latency to apply, in milliseconds.
840  * @param emulateEndurance Whether to emulate card endurance.
841  */
-
842 Result FSUSER_SetCtrCardLatencyParameter(u64 latency, bool emulateEndurance);
+
842 Result FSUSER_SetCtrCardLatencyParameter(u64 latency, bool emulateEndurance);
843 
844 /**
845  * @brief Toggles cleaning up invalid save data.
846  * @param Whether to enable cleaning up invalid save data.
847  */
-
848 Result FSUSER_SwitchCleanupInvalidSaveData(bool enable);
+
849 
850 /**
851  * @brief Enumerates system save data.
@@ -945,26 +945,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
853  * @param idsSize Size of the IDs buffer.
854  * @param ids Pointer to output IDs to.
855  */
-
856 Result FSUSER_EnumerateSystemSaveData(u32* idsWritten, u32 idsSize, u64* ids);
+
856 Result FSUSER_EnumerateSystemSaveData(u32* idsWritten, u32 idsSize, u64* ids);
857 
858 /**
859  * @brief Initializes a FSUSER session with an SDK version.
860  * @param session The handle of the FSUSER session to initialize.
861  * @param version SDK version to initialize with.
862  */
-
863 Result FSUSER_InitializeWithSdkVersion(Handle session, u32 version);
+
864 
865 /**
866  * @brief Sets the file system priority.
867  * @param priority Priority to set.
868  */
-
869 Result FSUSER_SetPriority(u32 priority);
+
869 Result FSUSER_SetPriority(u32 priority);
870 
871 /**
872  * @brief Gets the file system priority.
873  * @param priority Pointer to output the priority to.
874  */
-
875 Result FSUSER_GetPriority(u32* priority);
+
875 Result FSUSER_GetPriority(u32* priority);
876 
877 /**
878  * @brief Sets the save data secure value.
@@ -973,7 +973,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
881  * @param titleUniqueId Unique ID of the title. (default = 0)
882  * @param titleVariation Variation of the title. (default = 0)
883  */
-
884 Result FSUSER_SetSaveDataSecureValue(u64 value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation);
+
884 Result FSUSER_SetSaveDataSecureValue(u64 value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation);
885 
886 /**
887  * @brief Gets the save data secure value.
@@ -983,7 +983,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
891  * @param titleUniqueId Unique ID of the title. (default = 0)
892  * @param titleVariation Variation of the title. (default = 0)
893  */
-
894 Result FSUSER_GetSaveDataSecureValue(bool* exists, u64* value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation);
+
894 Result FSUSER_GetSaveDataSecureValue(bool* exists, u64* value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation);
895 
896 /**
897  * @brief Performs a control operation on a secure save.
@@ -993,13 +993,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
901  * @param output Buffer to write output to.
902  * @param outputSize Size of the output.
903  */
-
904 Result FSUSER_ControlSecureSave(FS_SecureSaveAction action, void* input, u32 inputSize, void* output, u32 outputSize);
+
904 Result FSUSER_ControlSecureSave(FS_SecureSaveAction action, void* input, u32 inputSize, void* output, u32 outputSize);
905 
906 /**
907  * @brief Gets the media type of the current application.
908  * @param mediaType Pointer to output the media type to.
909  */
-
910 Result FSUSER_GetMediaType(FS_MediaType* mediaType);
+
911 
912 /**
913  * @brief Performs a control operation on a file.
@@ -1010,7 +1010,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
918  * @param output Buffer to write output to.
919  * @param outputSize Size of the output.
920  */
-
921 Result FSFILE_Control(Handle handle, FS_FileAction action, void* input, u32 inputSize, void* output, u32 outputSize);
+
921 Result FSFILE_Control(Handle handle, FS_FileAction action, void* input, u32 inputSize, void* output, u32 outputSize);
922 
923 /**
924  * @brief Opens a handle to a sub-section of a file.
@@ -1019,7 +1019,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
927  * @param offset Offset of the sub-section.
928  * @param size Size of the sub-section.
929  */
-
930 Result FSFILE_OpenSubFile(Handle handle, Handle* subFile, u64 offset, u64 size);
+
930 Result FSFILE_OpenSubFile(Handle handle, Handle* subFile, u64 offset, u64 size);
931 
932 /**
933  * @brief Reads from a file.
@@ -1029,7 +1029,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
937  * @param buffer Buffer to read to.
938  * @param size Size of the buffer.
939  */
-
940 Result FSFILE_Read(Handle handle, u32* bytesRead, u64 offset, void* buffer, u32 size);
+
940 Result FSFILE_Read(Handle handle, u32* bytesRead, u64 offset, void* buffer, u32 size);
941 
942 /**
943  * @brief Writes to a file.
@@ -1040,68 +1040,68 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
948  * @param size Size of the buffer.
949  * @param flags Flags to use when writing.
950  */
-
951 Result FSFILE_Write(Handle handle, u32* bytesWritten, u64 offset, const void* buffer, u32 size, u32 flags);
+
951 Result FSFILE_Write(Handle handle, u32* bytesWritten, u64 offset, const void* buffer, u32 size, u32 flags);
952 
953 /**
954  * @brief Gets the size of a file.
955  * @param handle Handle of the file.
956  * @param size Pointer to output the size to.
957  */
-
958 Result FSFILE_GetSize(Handle handle, u64* size);
+
958 Result FSFILE_GetSize(Handle handle, u64* size);
959 
960 /**
961  * @brief Sets the size of a file.
962  * @param handle Handle of the file.
963  * @param size Size to set.
964  */
-
965 Result FSFILE_SetSize(Handle handle, u64 size);
+
965 Result FSFILE_SetSize(Handle handle, u64 size);
966 
967 /**
968  * @brief Gets the attributes of a file.
969  * @param handle Handle of the file.
970  * @param attributes Pointer to output the attributes to.
971  */
-
972 Result FSFILE_GetAttributes(Handle handle, u32* attributes);
+
972 Result FSFILE_GetAttributes(Handle handle, u32* attributes);
973 
974 /**
975  * @brief Sets the attributes of a file.
976  * @param handle Handle of the file.
977  * @param attributes Attributes to set.
978  */
-
979 Result FSFILE_SetAttributes(Handle handle, u32 attributes);
+
979 Result FSFILE_SetAttributes(Handle handle, u32 attributes);
980 
981 /**
982  * @brief Closes a file.
983  * @param handle Handle of the file.
984  */
-
985 Result FSFILE_Close(Handle handle);
+
985 Result FSFILE_Close(Handle handle);
986 
987 /**
988  * @brief Flushes a file's contents.
989  * @param handle Handle of the file.
990  */
-
991 Result FSFILE_Flush(Handle handle);
+
991 Result FSFILE_Flush(Handle handle);
992 
993 /**
994  * @brief Sets a file's priority.
995  * @param handle Handle of the file.
996  * @param priority Priority to set.
997  */
-
998 Result FSFILE_SetPriority(Handle handle, u32 priority);
+
998 Result FSFILE_SetPriority(Handle handle, u32 priority);
999 
1000 /**
1001  * @brief Gets a file's priority.
1002  * @param handle Handle of the file.
1003  * @param priority Pointer to output the priority to.
1004  */
-
1005 Result FSFILE_GetPriority(Handle handle, u32* priority);
+
1005 Result FSFILE_GetPriority(Handle handle, u32* priority);
1006 
1007 /**
1008  * @brief Opens a duplicate handle to a file.
1009  * @param handle Handle of the file.
1010  * @param linkFile Pointer to output the link handle to.
1011  */
-
1012 Result FSFILE_OpenLinkFile(Handle handle, Handle* linkFile);
+
1012 Result FSFILE_OpenLinkFile(Handle handle, Handle* linkFile);
1013 
1014 /**
1015  * @brief Performs a control operation on a directory.
@@ -1112,7 +1112,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
1020  * @param output Buffer to write output to.
1021  * @param outputSize Size of the output.
1022  */
-
1023 Result FSDIR_Control(Handle handle, FS_DirectoryAction action, void* input, u32 inputSize, void* output, u32 outputSize);
+
1023 Result FSDIR_Control(Handle handle, FS_DirectoryAction action, void* input, u32 inputSize, void* output, u32 outputSize);
1024 
1025 /**
1026  * @brief Reads one or more directory entries.
@@ -1121,69 +1121,253 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
1029  * @param entryCount Number of entries to read.
1030  * @param entryOut Pointer to output directory entries to.
1031  */
-
1032 Result FSDIR_Read(Handle handle, u32* entriesRead, u32 entryCount, FS_DirectoryEntry* entries);
+
1032 Result FSDIR_Read(Handle handle, u32* entriesRead, u32 entryCount, FS_DirectoryEntry* entries);
1033 
1034 /**
1035  * @brief Closes a directory.
1036  * @param handle Handle of the directory.
1037  */
-
1038 Result FSDIR_Close(Handle handle);
+
1038 Result FSDIR_Close(Handle handle);
1039 
1040 /**
1041  * @brief Sets a directory's priority.
1042  * @param handle Handle of the directory.
1043  * @param priority Priority to set.
1044  */
-
1045 Result FSDIR_SetPriority(Handle handle, u32 priority);
+
1045 Result FSDIR_SetPriority(Handle handle, u32 priority);
1046 
1047 /**
1048  * @brief Gets a directory's priority.
1049  * @param handle Handle of the directory.
1050  * @param priority Pointer to output the priority to.
1051  */
-
1052 Result FSDIR_GetPriority(Handle handle, u32* priority);
+
1052 Result FSDIR_GetPriority(Handle handle, u32* priority);
+
Result FSUSER_GetProgramLaunchInfo(FS_ProgramInfo *info, u32 processId)
Gets a process's program launch info.
+
Result FSFILE_Control(Handle handle, FS_FileAction action, void *input, u32 inputSize, void *output, u32 outputSize)
Performs a control operation on a file.
+
Result FSUSER_ClearNandLog(void)
Clears the NAND log.
+
Directory.
Definition: fs.h:30
+
Result FSDIR_Close(Handle handle)
Closes a directory.
+
Result fsInit(void)
Initializes FS.
#define PACKED
Packs a struct (and other types?) so it won't include padding bytes.
Definition: types.h:51
+
Result FSUSER_CardNorDirectRead_4xIO(u8 commandId, u32 address, u32 size, u8 *output)
Executes a CARDNOR 4xIO direct read.
u32 reserved2
Reserved.
Definition: fs.h:200
+
UTF-16 text path.
Definition: fs.h:76
+
Result FSUSER_OpenFile(Handle *out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes)
Opens a file.
+
Update.
Definition: fs.h:106
Various system types.
+
1MHz.
Definition: fs.h:89
+
User save data archive.
Definition: fs.h:65
+
TWL card.
Definition: fs.h:114
+
Result FSUSER_SetPriority(u32 priority)
Sets the file system priority.
+
Result FSFILE_SetAttributes(Handle handle, u32 attributes)
Sets the attributes of a file.
+
CTR card.
Definition: fs.h:113
s32 Result
Function result.
Definition: types.h:42
+
Result FSUSER_SetArchivePriority(FS_Archive archive, u32 priority)
Sets an archive's priority.
+
Result FSUSER_EnumerateExtSaveData(u32 *idsWritten, u32 idsSize, FS_MediaType mediaType, u32 idSize, bool shared, u8 *ids)
Enumerates ext save data.
Program information.
Definition: fs.h:171
+
FS_ArchiveID
Archive IDs.
Definition: fs.h:42
FS path.
Definition: fs.h:220
+
FS_SecureValueSlot
Secure value slot.
Definition: fs.h:80
u64 handle
Handle.
Definition: fs.h:232
+
FS_ArchiveAction
Archive control actions.
Definition: fs.h:124
u16 remasterVersion
Remaster version.
Definition: fs.h:183
+
Update file timestamp.
Definition: fs.h:21
+
NAND.
Definition: fs.h:36
+
Result FSUSER_DeleteAllExtSaveDataOnNand(void)
Deletes all ext save data on the NAND.
+
Handle * fsGetSessionHandle(void)
Gets the current FS session handle.
+
Result FSUSER_Initialize(Handle session)
Initializes a FSUSER session.
+
Result FSUSER_GetSdmcFatfsError(u32 *error)
Gets the last SDMC fatfs error.
+
Result FSDIR_SetPriority(Handle handle, u32 priority)
Sets a directory's priority.
+
Write-only SDMC archive.
Definition: fs.h:50
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
+
Result FSFILE_GetPriority(Handle handle, u32 *priority)
Gets a file's priority.
+
8MHz.
Definition: fs.h:92
+
Result FSUSER_DeleteFile(FS_Archive archive, FS_Path path)
Deletes a file.
+
4MHz.
Definition: fs.h:91
+
Manual.
Definition: fs.h:107
u32 clusterSize
Size of each cluster, in bytes.
Definition: fs.h:165
u32 id
Archive ID.
Definition: fs.h:230
+
Result FSUSER_CardSlotPowerOff(bool *status)
Powers off the card slot.
u16 reserved1
Reserved.
Definition: fs.h:198
+
Save data archive.
Definition: fs.h:45
FS_PathType type
FS path type.
Definition: fs.h:222
+
Result FSUSER_ControlSecureSave(FS_SecureSaveAction action, void *input, u32 inputSize, void *output, u32 outputSize)
Performs a control operation on a secure save.
+
Result FSUSER_GetLegacyBannerData(FS_MediaType mediaType, u64 programId, u8 *banner)
Gets the legacy banner data of a program.
+
Result FSFILE_OpenSubFile(Handle handle, Handle *subFile, u64 offset, u64 size)
Opens a handle to a sub-section of a file.
+
Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize)
Creates a file.
+
Result FSUSER_CardNorDirectCpuWriteWithoutVerify(u32 address, u32 size, u8 *input)
Executes a CARDNOR direct CPU write without verify.
+
SD application.
Definition: fs.h:82
+
Result FSUSER_GetLegacyRomHeader2(u32 headerSize, FS_MediaType mediaType, u64 programId, u8 *header)
Gets the legacy ROM header of a program.
+
Retrieves a file's last-modified timestamp. In: "u16*, UTF-16 Path", Out: "u64, Time Stamp"...
Definition: fs.h:127
+
FS_Action
FS control actions.
Definition: fs.h:118
+
Archive.
Definition: fs.h:28
+
Read-only.
Definition: fs.h:27
+
Result FSUSER_GetFormatInfo(u32 *totalSize, u32 *directories, u32 *files, bool *duplicateData, FS_ArchiveID archiveId, FS_Path path)
Retrieves archive format info.
+
Result FSUSER_IsSdmcWritable(bool *writable)
Gets whether the SD card is writable.
const void * data
Pointer to FS path data.
Definition: fs.h:224
u32 Handle
Resource handle.
Definition: types.h:41
+
Result FSFILE_SetPriority(Handle handle, u32 priority)
Sets a file's priority.
+
Result FSUSER_CreateSeed(void)
Creates the FS seed.
+
Result FSUSER_GetNandCid(u8 *out, u32 length)
Gets the NAND CID.
+
NAND TWL FS archive.
Definition: fs.h:62
+
Result FSUSER_GetNandLog(u8 *out, u32 length)
Gets the NAND log.
FS archive.
Definition: fs.h:228
Archive resource information.
Definition: fs.h:162
+
Result FSUSER_SetSaveDataSecureValue(u64 value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation)
Sets the save data secure value.
u32 attributes
Attributes.
Definition: fs.h:157
+
Result FSFILE_Flush(Handle handle)
Flushes a file's contents.
+
FS_FileAction
File control actions.
Definition: fs.h:138
+
Read-only write access NAND archive.
Definition: fs.h:57
+
2MHz.
Definition: fs.h:90
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
+
Result FSUSER_OpenArchive(FS_Archive *archive)
Opens an archive.
+
Commits save data changes. No inputs/outputs.
Definition: fs.h:126
u64 programId
Program ID.
Definition: fs.h:173
+
void fsUseSession(Handle session, bool sdmc)
Sets the FSUSER session to use in the current thread.
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
+
FS_CardSpiBusMode
Card SPI bus mode.
Definition: fs.h:97
+
Result FSFILE_Close(Handle handle)
Closes a file.
+
Result FSFILE_SetSize(Handle handle, u64 size)
Sets the size of a file.
+
Read-only NAND archive.
Definition: fs.h:56
+
Result FSUSER_DeleteDirectory(FS_Archive archive, FS_Path path)
Deletes a directory, failing if it is not empty.
+
512KHz.
Definition: fs.h:88
+
Result FSUSER_GetLegacyRomHeader(FS_MediaType mediaType, u64 programId, u8 *header)
Gets the legacy ROM header of a program.
System save data information.
Definition: fs.h:204
u8 valid
Valid flag. (Always 1)
Definition: fs.h:155
+
Result FSDIR_Control(Handle handle, FS_DirectoryAction action, void *input, u32 inputSize, void *output, u32 outputSize)
Performs a control operation on a directory.
u32 saveId
Save ID.
Definition: fs.h:209
+
Result FSUSER_GetSpecialContentIndex(u16 *index, FS_MediaType mediaType, u64 programId, FS_SpecialContentType type)
Gets a special content's index.
+
FS_Path fsMakePath(FS_PathType type, const void *path)
Creates an FS_Path instance.
+
Result FSUSER_CardSlotGetCardIFPowerStatus(bool *status)
Gets the card's power status.
+
Result FSUSER_GetPriority(u32 *priority)
Gets the file system priority.
+
Result FSFILE_GetSize(Handle handle, u64 *size)
Gets the size of a file.
+
FS_MediaType
Media types.
Definition: fs.h:34
+
Shared ext data archive.
Definition: fs.h:47
uint32_t u32
32-bit unsigned integer
Definition: types.h:23
+
Open for writing.
Definition: fs.h:13
+
Result FSUSER_InitializeWithSdkVersion(Handle session, u32 version)
Initializes a FSUSER session with an SDK version.
+
Result FSUSER_OpenDirectory(Handle *out, FS_Archive archive, FS_Path path)
Opens a directory.
+
Result FSUSER_DeleteExtSaveData(FS_ExtSaveDataInfo info)
Deletes ext save data.
+
Result FSUSER_CardSlotPowerOn(bool *status)
Powers on the card slot.
Integrity verification seed.
Definition: fs.h:187
+
Result FSUSER_CardNorDirectReadWithAddress(u8 commandId, u32 address, u32 size, u8 *output)
Executes a CARDNOR direct read with an address.
+
Result FSUSER_StartDeviceMoveAsDestination(FS_DeviceMoveContext context, bool clear)
Initiates a device move as the destination device.
+
Result FSUSER_GetArchivePriority(u32 *priority, FS_Archive archive)
Gets an archive's priority.
+
Demo save data archive.
Definition: fs.h:66
FS_Path lowPath
FS path.
Definition: fs.h:231
+
Result FSUSER_CardNorDirectSectorEraseWithoutVerify(u32 address)
Executes a CARDNOR direct sector erase without verify.
+
Result FSUSER_RenameDirectory(FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath)
Renames a directory.
+
FS_CardType
Definition: fs.h:111
+
Result FSUSER_GetProductInfo(FS_ProductInfo *info, u32 processId)
Gets a process's product info.
+
Result FSUSER_SetCardSpiBusMode(FS_CardSpiBusMode busMode)
Sets the CARDSPI bus mode.
u64 fileSize
File size.
Definition: fs.h:158
+
SDMC archive.
Definition: fs.h:49
+
Result FSUSER_GetNandSpeedInfo(u32 *speedInfo)
Gets the NAND speed info.
+
System save data archive.
Definition: fs.h:54
+
Result FSUSER_GetExtDataBlockSize(u64 *totalBlocks, u64 *freeBlocks, u32 *blockSize, FS_ExtSaveDataInfo info)
Gets an ext data archive's block information.
+
Result FSUSER_CreateDirectory(FS_Archive archive, FS_Path path, u32 attributes)
Creates a directory.
+
Result FSFILE_Read(Handle handle, u32 *bytesRead, u64 offset, void *buffer, u32 size)
Reads from a file.
+
NAND CTR FS archive.
Definition: fs.h:60
+
Result FSFILE_GetAttributes(Handle handle, u32 *attributes)
Gets the attributes of a file.
+
System save data archive.
Definition: fs.h:48
+
void fsExit(void)
Exits FS.
+
Result FSUSER_DeleteSdmcRoot(void)
Deletes the 3DS SDMC root.
+
Result FSUSER_GetLegacySubBannerData(u32 bannerSize, FS_MediaType mediaType, u64 programId, u8 *banner)
Gets the legacy sub banner data of a program.
+
Result FSUSER_CardSlotIsInserted(bool *inserted)
Gets whether a card is inserted.
+
Result FSUSER_ImportIntegrityVerificationSeed(FS_IntegrityVerificationSeed *seed)
Imports an integrity verification seed.
+
Result FSUSER_GetCardType(FS_CardType *type)
Gets the inserted card type.
+
Open for reading.
Definition: fs.h:12
+
Result FSUSER_CardNorDirectCommand(u8 commandId)
Executes a CARDNOR direct command.
+
Result FSUSER_OpenFileDirectly(Handle *out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes)
Opens a file directly.
+
Result FSUSER_DeleteSystemSaveData(FS_SystemSaveDataInfo info)
Deletes system save data.
u32 size
FS path size.
Definition: fs.h:223
u8 unknown
Unknown.
Definition: fs.h:207
+
4-bit.
Definition: fs.h:100
u16 reserved
Reserved.
Definition: fs.h:208
+
RomFS archive.
Definition: fs.h:44
+
Result FSDIR_Read(Handle handle, u32 *entriesRead, u32 entryCount, FS_DirectoryEntry *entries)
Reads one or more directory entries.
+
Game card.
Definition: fs.h:38
u8 reserved
Reserved.
Definition: fs.h:156
Device move context.
Definition: fs.h:213
u32 totalClusters
Total number of clusters.
Definition: fs.h:166
+
16MHz.
Definition: fs.h:93
+
Result FSUSER_Control(FS_Action action, void *input, u32 inputSize, void *output, u32 outputSize)
Performs a control operation on the filesystem.
u32 freeClusters
Number of free clusters.
Definition: fs.h:167
+
Result FSUSER_SendInitializeInfoTo9(void)
Sends initialization info to ARM9.
+
Result FSUSER_SetCtrCardLatencyParameter(u64 latency, bool emulateEndurance)
Configures CTRCARD latency emulation.
+
Result FSUSER_CheckAuthorityToAccessExtSaveData(bool *access, FS_MediaType mediaType, u64 saveId, u32 processId)
Checks a process's authority to access a save data archive.
+
Card SPI FS archive.
Definition: fs.h:52
+
FS_PathType
Path types.
Definition: fs.h:70
Directory entry.
Definition: fs.h:150
+
Result FSUSER_CreateExtSaveData(FS_ExtSaveDataInfo info, u32 directories, u32 files, u64 sizeLimit, u32 smdhSize, u8 *smdh)
Creates ext save data.
+
Result FSUSER_SwitchCleanupInvalidSaveData(bool enable)
Toggles cleaning up invalid save data.
+
Result FSUSER_GetSdmcArchiveResource(FS_ArchiveResource *archiveResource)
Gets the SDMC archive resource information.
+
Invalid path.
Definition: fs.h:72
+
Result FSUSER_IsSdmcDetected(bool *detected)
Gets whether an SD card is detected.
+
SD card.
Definition: fs.h:37
+
Hidden.
Definition: fs.h:29
+
ASCII text path.
Definition: fs.h:75
+
Result FSUSER_GetArchiveResource(FS_ArchiveResource *archiveResource, FS_MediaType mediaType)
Gets an archive's resource information.
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:46
+
Result FSUSER_GetSdmcLog(u8 *out, u32 length)
Gets the SDMC log.
+
Result FSFILE_OpenLinkFile(Handle handle, Handle *linkFile)
Opens a duplicate handle to a file.
+
BOSS ext data archive.
Definition: fs.h:51
+
Deletes a save's secure value. In: "u64, ((SecureValueSlot << 32) | (TitleUniqueId << 8) | TitleVaria...
Definition: fs.h:133
+
Result FSUSER_GetSdmcCid(u8 *out, u32 length)
Gets the SDMC CID.
+
Result FSUSER_CardNorDirectWrite(u8 commandId, u32 size, u8 *input)
Executes a CARDNOR direct write.
+
Game card save data archive.
Definition: fs.h:64
+
Result FSUSER_GetNandArchiveResource(FS_ArchiveResource *archiveResource)
Gets the NAND archive resource information.
+
Result FSUSER_GetFreeBytes(u64 *freeBytes, FS_Archive archive)
Gets the number of free bytes within an archive.
+
Result FSUSER_DeleteDirectoryRecursively(FS_Archive archive, FS_Path path)
Deletes a directory, also deleting its contents.
+
Result FSFILE_Write(Handle handle, u32 *bytesWritten, u64 offset, const void *buffer, u32 size, u32 flags)
Writes to a file.
+
NAND W FS archive.
Definition: fs.h:63
+
Result FSUSER_EnumerateSystemSaveData(u32 *idsWritten, u32 idsSize, u64 *ids)
Enumerates system save data.
+
Formats a save. No inputs/outputs.
Definition: fs.h:134
+
void fsEndUseSession(void)
Disables the FSUSER session override in the current thread.
+
Result FSUSER_QueryTotalQuotaSize(u64 *quotaSize, u32 directories, u32 files, u32 fileSizeCount, u64 *fileSizes)
Queries the total quota size of a save data archive.
+
User save data and ExeFS/RomFS archive (only ExeFS for fs:LDR).
Definition: fs.h:59
+
User save data and ExeFS/RomFS archive.
Definition: fs.h:58
+
FS_CardSpiBaudRate
Card SPI baud rate.
Definition: fs.h:86
+
Result FSUSER_SetCardSpiBaudRate(FS_CardSpiBaudRate baudRate)
Sets the CARDSPI baud rate.
+
Result FSUSER_CloseArchive(FS_Archive *archive)
Closes an archive.
+
Result FSUSER_GetMediaType(FS_MediaType *mediaType)
Gets the media type of the current application.
+
Result FSUSER_AbnegateAccessRight(u32 accessRight)
Abnegates an access right.
+
Result FSUSER_ReadSpecialFile(u32 *bytesRead, u64 fileOffset, u32 size, u8 *data)
Reads from a special file.
+
FS_SpecialContentType
Card SPI bus mode.
Definition: fs.h:104
u8 unknown
Unknown.
Definition: fs.h:197
+
DLP child.
Definition: fs.h:108
+
Result FSUSER_StartDeviceMoveAsSource(FS_DeviceMoveContext *context)
Initiates a device move as the source device.
+
Result FSUSER_GetSaveDataSecureValue(bool *exists, u64 *value, FS_SecureValueSlot slot, u32 titleUniqueId, u8 titleVariation)
Gets the save data secure value.
+
Result FSUSER_GetSpecialFileSize(u64 *fileSize)
Gets the size of a special file.
+
Create file.
Definition: fs.h:14
+
Empty path.
Definition: fs.h:73
+
Result FSUSER_RenameFile(FS_Archive srcArchive, FS_Path srcPath, FS_Archive dstArchive, FS_Path dstPath)
Renames a file.
+
FS_DirectoryAction
Directory control actions.
Definition: fs.h:144
+
Result FSDIR_GetPriority(Handle handle, u32 *priority)
Gets a directory's priority.
+
Result FSUSER_GetSdmcCtrRootPath(u8 *out, u32 length)
Gets the CTR SDMC root path.
+
Result FSUSER_FormatSaveData(FS_ArchiveID archiveId, FS_Path path, u32 blocks, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData)
Formats save data.
+
Result FSUSER_InitializeCtrFileSystem(void)
Initializes the CTR file system.
+
Result FSUSER_CreateSystemSaveData(FS_SystemSaveDataInfo info, u32 totalSize, u32 blockSize, u32 directories, u32 files, u32 directoryBuckets, u32 fileBuckets, bool duplicateData)
Creates system save data.
+
Result FSUSER_ClearSdmcLog(void)
Clears the SDMC log.
+
Result FSUSER_CardNorDirectRead(u8 commandId, u32 size, u8 *output)
Executes a CARDNOR direct read.
Product information.
Definition: fs.h:179
+
Result FSUSER_ExportIntegrityVerificationSeed(FS_IntegrityVerificationSeed *seed)
Exports the integrity verification seed.
+
Read-write NAND archive.
Definition: fs.h:55
+
Flush.
Definition: fs.h:20
+
TWL PHOTO archive.
Definition: fs.h:61
u64 saveId
Save ID.
Definition: fs.h:199
+
Result FSUSER_CardNorDirectWriteWithAddress(u8 commandId, u32 address, u32 size, u8 *input)
Executes a CARDNOR direct write with an address.
+
Binary path. Meaning is per-archive.
Definition: fs.h:74
+
FS_SecureSaveAction
Secure save control actions.
Definition: fs.h:131
Ext save data information.
Definition: fs.h:194
+
Ext data archive.
Definition: fs.h:46
u32 sectorSize
Size of each sector, in bytes.
Definition: fs.h:164
+
1-bit.
Definition: fs.h:99
+
Result FSUSER_GetSdmcSpeedInfo(u32 *speedInfo)
Gets the SDMC speed info.
+
Result FSUSER_CardNorDirectCommandWithAddress(u8 commandId, u32 address)
Executes a CARDNOR direct command with an address.
+
Result FSUSER_ReadExtSaveDataIcon(u32 *bytesRead, FS_ExtSaveDataInfo info, u32 smdhSize, u8 *smdh)
Reads the SMDH icon of ext save data.
+
Result FSUSER_ControlArchive(FS_Archive archive, FS_ArchiveAction action, void *input, u32 inputSize, void *output, u32 outputSize)
Performs a control operation on an archive.
+
Ext data and BOSS ext data archive.
Definition: fs.h:53
diff --git a/gfx_8h.html b/gfx_8h.html index 00be863..f000ece 100644 --- a/gfx_8h.html +++ b/gfx_8h.html @@ -249,7 +249,7 @@ Variables

Closes the gsp service and frees the framebuffers.

Just call it when you're done.

-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, sdmc/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
@@ -269,7 +269,7 @@ Variables

Flushes the current framebuffers.

Use this if the data within your framebuffers changes a lot and that you want to make sure everything was updated correctly. This shouldn't be needed and has a significant overhead.

-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
@@ -531,7 +531,7 @@ You should always call gfxSwapBuffers instead.

-
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
+
Examples:
app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
diff --git a/globals_a.html b/globals_a.html index 79dcbaf..fd064e9 100644 --- a/globals_a.html +++ b/globals_a.html @@ -511,6 +511,81 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ArbitrationType : svc.h
  • +
  • ARCHIVE_ACTION_COMMIT_SAVE_DATA +: fs.h +
  • +
  • ARCHIVE_ACTION_GET_TIMESTAMP +: fs.h +
  • +
  • ARCHIVE_BOSS_EXTDATA +: fs.h +
  • +
  • ARCHIVE_CARD_SPIFS +: fs.h +
  • +
  • ARCHIVE_DEMO_SAVEDATA +: fs.h +
  • +
  • ARCHIVE_EXTDATA +: fs.h +
  • +
  • ARCHIVE_EXTDATA_AND_BOSS_EXTDATA +: fs.h +
  • +
  • ARCHIVE_GAMECARD_SAVEDATA +: fs.h +
  • +
  • ARCHIVE_NAND_CTR_FS +: fs.h +
  • +
  • ARCHIVE_NAND_RO +: fs.h +
  • +
  • ARCHIVE_NAND_RO_WRITE_ACCESS +: fs.h +
  • +
  • ARCHIVE_NAND_RW +: fs.h +
  • +
  • ARCHIVE_NAND_TWL_FS +: fs.h +
  • +
  • ARCHIVE_NAND_W_FS +: fs.h +
  • +
  • ARCHIVE_ROMFS +: fs.h +
  • +
  • ARCHIVE_SAVEDATA +: fs.h +
  • +
  • ARCHIVE_SAVEDATA_AND_CONTENT +: fs.h +
  • +
  • ARCHIVE_SAVEDATA_AND_CONTENT2 +: fs.h +
  • +
  • ARCHIVE_SDMC +: fs.h +
  • +
  • ARCHIVE_SDMC_WRITE_ONLY +: fs.h +
  • +
  • ARCHIVE_SHARED_EXTDATA +: fs.h +
  • +
  • ARCHIVE_SYSTEM_SAVEDATA +: fs.h +
  • +
  • ARCHIVE_SYSTEM_SAVEDATA2 +: fs.h +
  • +
  • ARCHIVE_TWL_PHOTO +: fs.h +
  • +
  • ARCHIVE_USER_SAVEDATA +: fs.h +
  • AtomicDecrement : synchronization.h
  • diff --git a/globals_b.html b/globals_b.html index 4cd285a..597e447 100644 --- a/globals_b.html +++ b/globals_b.html @@ -124,6 +124,24 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation:

    - b -

      +
    • BAUDRATE_16MHZ +: fs.h +
    • +
    • BAUDRATE_1MHZ +: fs.h +
    • +
    • BAUDRATE_2MHZ +: fs.h +
    • +
    • BAUDRATE_4MHZ +: fs.h +
    • +
    • BAUDRATE_512KHZ +: fs.h +
    • +
    • BAUDRATE_8MHZ +: fs.h +
    • BIT : types.h
    • @@ -133,6 +151,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    • BLOCK_LINE : y2r.h
    • +
    • BUSMODE_1BIT +: fs.h +
    • +
    • BUSMODE_4BIT +: fs.h +
    diff --git a/globals_c.html b/globals_c.html index a5fb1b0..9a98c94 100644 --- a/globals_c.html +++ b/globals_c.html @@ -361,6 +361,75 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • CAPTURE_REPEAT : csnd.h
  • +
  • CARD_CTR +: fs.h +
  • +
  • CARD_TWL +: fs.h +
  • +
  • CFG_Language +: cfgu.h +
  • +
  • CFG_LANGUAGE_DE +: cfgu.h +
  • +
  • CFG_LANGUAGE_EN +: cfgu.h +
  • +
  • CFG_LANGUAGE_ES +: cfgu.h +
  • +
  • CFG_LANGUAGE_FR +: cfgu.h +
  • +
  • CFG_LANGUAGE_IT +: cfgu.h +
  • +
  • CFG_LANGUAGE_JP +: cfgu.h +
  • +
  • CFG_LANGUAGE_KO +: cfgu.h +
  • +
  • CFG_LANGUAGE_NL +: cfgu.h +
  • +
  • CFG_LANGUAGE_PT +: cfgu.h +
  • +
  • CFG_LANGUAGE_RU +: cfgu.h +
  • +
  • CFG_LANGUAGE_TW +: cfgu.h +
  • +
  • CFG_LANGUAGE_ZH +: cfgu.h +
  • +
  • CFG_Region +: cfgu.h +
  • +
  • CFG_REGION_AUS +: cfgu.h +
  • +
  • CFG_REGION_CHN +: cfgu.h +
  • +
  • CFG_REGION_EUR +: cfgu.h +
  • +
  • CFG_REGION_JPN +: cfgu.h +
  • +
  • CFG_REGION_KOR +: cfgu.h +
  • +
  • CFG_REGION_TWN +: cfgu.h +
  • +
  • CFG_REGION_USA +: cfgu.h +
  • CFGNOR_Initialize() : cfgnor.h
  • @@ -385,6 +454,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • cfgnorWriteFlash() : cfgnor.h
  • +
  • CFGU_GenHashConsoleUnique() +: cfgu.h +
  • +
  • CFGU_GetConfigInfoBlk2() +: cfgu.h +
  • +
  • CFGU_GetCountryCodeID() +: cfgu.h +
  • +
  • CFGU_GetCountryCodeString() +: cfgu.h +
  • +
  • CFGU_GetModelNintendo2DS() +: cfgu.h +
  • +
  • CFGU_GetRegionCanadaUSA() +: cfgu.h +
  • +
  • CFGU_GetSystemLanguage() +: cfgu.h +
  • +
  • CFGU_GetSystemModel() +: cfgu.h +
  • +
  • CFGU_SecureInfoGetRegion() +: cfgu.h +
  • +
  • cfguExit() +: cfgu.h +
  • +
  • cfguInit() +: cfgu.h +
  • circleRead : hid.h
  • diff --git a/globals_enum.html b/globals_enum.html index 3580dea..c411285 100644 --- a/globals_enum.html +++ b/globals_enum.html @@ -83,6 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • c
  • d
  • e
  • +
  • f
  • g
  • h
  • i
  • @@ -162,6 +163,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • CAMU_WhiteBalance : cam.h
  • +
  • CFG_Language +: cfgu.h +
  • +
  • CFG_Region +: cfgu.h +
  • CSND_DutyCycle : csnd.h
  • @@ -206,6 +213,49 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); +

    - f -

      +
    • FS_Action +: fs.h +
    • +
    • FS_ArchiveAction +: fs.h +
    • +
    • FS_ArchiveID +: fs.h +
    • +
    • FS_CardSpiBaudRate +: fs.h +
    • +
    • FS_CardSpiBusMode +: fs.h +
    • +
    • FS_CardType +: fs.h +
    • +
    • FS_DirectoryAction +: fs.h +
    • +
    • FS_FileAction +: fs.h +
    • +
    • FS_MediaType +: fs.h +
    • +
    • FS_PathType +: fs.h +
    • +
    • FS_SecureSaveAction +: fs.h +
    • +
    • FS_SecureValueSlot +: fs.h +
    • +
    • FS_SpecialContentType +: fs.h +
    • +
    + +

    - g -

    • gfx3dSide_t : gfx.h diff --git a/globals_eval.html b/globals_eval.html index 1778faf..1e17729 100644 --- a/globals_eval.html +++ b/globals_eval.html @@ -268,6 +268,81 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    • ARBITRATION_WAIT_IF_LESS_THAN_TIMEOUT : svc.h
    • +
    • ARCHIVE_ACTION_COMMIT_SAVE_DATA +: fs.h +
    • +
    • ARCHIVE_ACTION_GET_TIMESTAMP +: fs.h +
    • +
    • ARCHIVE_BOSS_EXTDATA +: fs.h +
    • +
    • ARCHIVE_CARD_SPIFS +: fs.h +
    • +
    • ARCHIVE_DEMO_SAVEDATA +: fs.h +
    • +
    • ARCHIVE_EXTDATA +: fs.h +
    • +
    • ARCHIVE_EXTDATA_AND_BOSS_EXTDATA +: fs.h +
    • +
    • ARCHIVE_GAMECARD_SAVEDATA +: fs.h +
    • +
    • ARCHIVE_NAND_CTR_FS +: fs.h +
    • +
    • ARCHIVE_NAND_RO +: fs.h +
    • +
    • ARCHIVE_NAND_RO_WRITE_ACCESS +: fs.h +
    • +
    • ARCHIVE_NAND_RW +: fs.h +
    • +
    • ARCHIVE_NAND_TWL_FS +: fs.h +
    • +
    • ARCHIVE_NAND_W_FS +: fs.h +
    • +
    • ARCHIVE_ROMFS +: fs.h +
    • +
    • ARCHIVE_SAVEDATA +: fs.h +
    • +
    • ARCHIVE_SAVEDATA_AND_CONTENT +: fs.h +
    • +
    • ARCHIVE_SAVEDATA_AND_CONTENT2 +: fs.h +
    • +
    • ARCHIVE_SDMC +: fs.h +
    • +
    • ARCHIVE_SDMC_WRITE_ONLY +: fs.h +
    • +
    • ARCHIVE_SHARED_EXTDATA +: fs.h +
    • +
    • ARCHIVE_SYSTEM_SAVEDATA +: fs.h +
    • +
    • ARCHIVE_SYSTEM_SAVEDATA2 +: fs.h +
    • +
    • ARCHIVE_TWL_PHOTO +: fs.h +
    • +
    • ARCHIVE_USER_SAVEDATA +: fs.h +
    diff --git a/globals_eval_b.html b/globals_eval_b.html index dece9cc..f0ab8b8 100644 --- a/globals_eval_b.html +++ b/globals_eval_b.html @@ -121,12 +121,36 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  

    - b -

      +
    • BAUDRATE_16MHZ +: fs.h +
    • +
    • BAUDRATE_1MHZ +: fs.h +
    • +
    • BAUDRATE_2MHZ +: fs.h +
    • +
    • BAUDRATE_4MHZ +: fs.h +
    • +
    • BAUDRATE_512KHZ +: fs.h +
    • +
    • BAUDRATE_8MHZ +: fs.h +
    • BLOCK_8_BY_8 : y2r.h
    • BLOCK_LINE : y2r.h
    • +
    • BUSMODE_1BIT +: fs.h +
    • +
    • BUSMODE_4BIT +: fs.h +
    diff --git a/globals_eval_c.html b/globals_eval_c.html index 486bc3b..49308ca 100644 --- a/globals_eval_c.html +++ b/globals_eval_c.html @@ -136,6 +136,69 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • CAPTURE_REPEAT : csnd.h
  • +
  • CARD_CTR +: fs.h +
  • +
  • CARD_TWL +: fs.h +
  • +
  • CFG_LANGUAGE_DE +: cfgu.h +
  • +
  • CFG_LANGUAGE_EN +: cfgu.h +
  • +
  • CFG_LANGUAGE_ES +: cfgu.h +
  • +
  • CFG_LANGUAGE_FR +: cfgu.h +
  • +
  • CFG_LANGUAGE_IT +: cfgu.h +
  • +
  • CFG_LANGUAGE_JP +: cfgu.h +
  • +
  • CFG_LANGUAGE_KO +: cfgu.h +
  • +
  • CFG_LANGUAGE_NL +: cfgu.h +
  • +
  • CFG_LANGUAGE_PT +: cfgu.h +
  • +
  • CFG_LANGUAGE_RU +: cfgu.h +
  • +
  • CFG_LANGUAGE_TW +: cfgu.h +
  • +
  • CFG_LANGUAGE_ZH +: cfgu.h +
  • +
  • CFG_REGION_AUS +: cfgu.h +
  • +
  • CFG_REGION_CHN +: cfgu.h +
  • +
  • CFG_REGION_EUR +: cfgu.h +
  • +
  • CFG_REGION_JPN +: cfgu.h +
  • +
  • CFG_REGION_KOR +: cfgu.h +
  • +
  • CFG_REGION_TWN +: cfgu.h +
  • +
  • CFG_REGION_USA +: cfgu.h +
  • COEFFICIENT_ITU_R_BT_601 : y2r.h
  • diff --git a/globals_eval_f.html b/globals_eval_f.html index ddc87d4..80933b9 100644 --- a/globals_eval_f.html +++ b/globals_eval_f.html @@ -172,6 +172,33 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • FRAME_RATE_8_5 : cam.h
  • +
  • FS_ATTRIBUTE_ARCHIVE +: fs.h +
  • +
  • FS_ATTRIBUTE_DIRECTORY +: fs.h +
  • +
  • FS_ATTRIBUTE_HIDDEN +: fs.h +
  • +
  • FS_ATTRIBUTE_READ_ONLY +: fs.h +
  • +
  • FS_OPEN_CREATE +: fs.h +
  • +
  • FS_OPEN_READ +: fs.h +
  • +
  • FS_OPEN_WRITE +: fs.h +
  • +
  • FS_WRITE_FLUSH +: fs.h +
  • +
  • FS_WRITE_UPDATE_TIME +: fs.h +
  • diff --git a/globals_eval_m.html b/globals_eval_m.html index ba74ab6..a7c7d6b 100644 --- a/globals_eval_m.html +++ b/globals_eval_m.html @@ -121,6 +121,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  

    - m -

      +
    • MEDIATYPE_GAME_CARD +: fs.h +
    • +
    • MEDIATYPE_NAND +: fs.h +
    • +
    • MEDIATYPE_SD +: fs.h +
    • MEMOP_ALLOC : svc.h
    • diff --git a/globals_eval_p.html b/globals_eval_p.html index d092cd0..a1c0625 100644 --- a/globals_eval_p.html +++ b/globals_eval_p.html @@ -121,6 +121,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  

      - p -

        +
      • PATH_ASCII +: fs.h +
      • +
      • PATH_BINARY +: fs.h +
      • +
      • PATH_EMPTY +: fs.h +
      • +
      • PATH_INVALID +: fs.h +
      • +
      • PATH_UTF16 +: fs.h +
      • PHOTO_MODE_LANDSCAPE : cam.h
      • diff --git a/globals_eval_s.html b/globals_eval_s.html index 00becf0..87af186 100644 --- a/globals_eval_s.html +++ b/globals_eval_s.html @@ -121,6 +121,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  

        - s -

          +
        • SECURESAVE_ACTION_DELETE +: fs.h +
        • +
        • SECURESAVE_ACTION_FORMAT +: fs.h +
        • +
        • SECUREVALUE_SLOT_SD +: fs.h +
        • SELECT_ALL : cam.h
        • @@ -205,6 +214,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
        • SOUND_REPEAT : csnd.h
        • +
        • SPECIALCONTENT_DLP_CHILD +: fs.h +
        • +
        • SPECIALCONTENT_MANUAL +: fs.h +
        • +
        • SPECIALCONTENT_UPDATE +: fs.h +
        diff --git a/globals_f.html b/globals_f.html index fb91c21..0f894a3 100644 --- a/globals_f.html +++ b/globals_f.html @@ -187,6 +187,411 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
      • FRAME_RATE_8_5 : cam.h
      • +
      • FS_Action +: fs.h +
      • +
      • FS_ArchiveAction +: fs.h +
      • +
      • FS_ArchiveID +: fs.h +
      • +
      • FS_ATTRIBUTE_ARCHIVE +: fs.h +
      • +
      • FS_ATTRIBUTE_DIRECTORY +: fs.h +
      • +
      • FS_ATTRIBUTE_HIDDEN +: fs.h +
      • +
      • FS_ATTRIBUTE_READ_ONLY +: fs.h +
      • +
      • FS_CardSpiBaudRate +: fs.h +
      • +
      • FS_CardSpiBusMode +: fs.h +
      • +
      • FS_CardType +: fs.h +
      • +
      • FS_DirectoryAction +: fs.h +
      • +
      • FS_FileAction +: fs.h +
      • +
      • FS_MediaType +: fs.h +
      • +
      • FS_OPEN_CREATE +: fs.h +
      • +
      • FS_OPEN_READ +: fs.h +
      • +
      • FS_OPEN_WRITE +: fs.h +
      • +
      • FS_PathType +: fs.h +
      • +
      • FS_SecureSaveAction +: fs.h +
      • +
      • FS_SecureValueSlot +: fs.h +
      • +
      • FS_SpecialContentType +: fs.h +
      • +
      • FS_WRITE_FLUSH +: fs.h +
      • +
      • FS_WRITE_UPDATE_TIME +: fs.h +
      • +
      • FSDIR_Close() +: fs.h +
      • +
      • FSDIR_Control() +: fs.h +
      • +
      • FSDIR_GetPriority() +: fs.h +
      • +
      • FSDIR_Read() +: fs.h +
      • +
      • FSDIR_SetPriority() +: fs.h +
      • +
      • fsEndUseSession() +: fs.h +
      • +
      • fsExit() +: fs.h +
      • +
      • FSFILE_Close() +: fs.h +
      • +
      • FSFILE_Control() +: fs.h +
      • +
      • FSFILE_Flush() +: fs.h +
      • +
      • FSFILE_GetAttributes() +: fs.h +
      • +
      • FSFILE_GetPriority() +: fs.h +
      • +
      • FSFILE_GetSize() +: fs.h +
      • +
      • FSFILE_OpenLinkFile() +: fs.h +
      • +
      • FSFILE_OpenSubFile() +: fs.h +
      • +
      • FSFILE_Read() +: fs.h +
      • +
      • FSFILE_SetAttributes() +: fs.h +
      • +
      • FSFILE_SetPriority() +: fs.h +
      • +
      • FSFILE_SetSize() +: fs.h +
      • +
      • FSFILE_Write() +: fs.h +
      • +
      • fsGetSessionHandle() +: fs.h +
      • +
      • fsInit() +: fs.h +
      • +
      • fsMakePath() +: fs.h +
      • +
      • FSUSER_AbnegateAccessRight() +: fs.h +
      • +
      • FSUSER_CardNorDirectCommand() +: fs.h +
      • +
      • FSUSER_CardNorDirectCommandWithAddress() +: fs.h +
      • +
      • FSUSER_CardNorDirectCpuWriteWithoutVerify() +: fs.h +
      • +
      • FSUSER_CardNorDirectRead() +: fs.h +
      • +
      • FSUSER_CardNorDirectRead_4xIO() +: fs.h +
      • +
      • FSUSER_CardNorDirectReadWithAddress() +: fs.h +
      • +
      • FSUSER_CardNorDirectSectorEraseWithoutVerify() +: fs.h +
      • +
      • FSUSER_CardNorDirectWrite() +: fs.h +
      • +
      • FSUSER_CardNorDirectWriteWithAddress() +: fs.h +
      • +
      • FSUSER_CardSlotGetCardIFPowerStatus() +: fs.h +
      • +
      • FSUSER_CardSlotIsInserted() +: fs.h +
      • +
      • FSUSER_CardSlotPowerOff() +: fs.h +
      • +
      • FSUSER_CardSlotPowerOn() +: fs.h +
      • +
      • FSUSER_CheckAuthorityToAccessExtSaveData() +: fs.h +
      • +
      • FSUSER_ClearNandLog() +: fs.h +
      • +
      • FSUSER_ClearSdmcLog() +: fs.h +
      • +
      • FSUSER_CloseArchive() +: fs.h +
      • +
      • FSUSER_Control() +: fs.h +
      • +
      • FSUSER_ControlArchive() +: fs.h +
      • +
      • FSUSER_ControlSecureSave() +: fs.h +
      • +
      • FSUSER_CreateDirectory() +: fs.h +
      • +
      • FSUSER_CreateExtSaveData() +: fs.h +
      • +
      • FSUSER_CreateFile() +: fs.h +
      • +
      • FSUSER_CreateSeed() +: fs.h +
      • +
      • FSUSER_CreateSystemSaveData() +: fs.h +
      • +
      • FSUSER_DeleteAllExtSaveDataOnNand() +: fs.h +
      • +
      • FSUSER_DeleteDirectory() +: fs.h +
      • +
      • FSUSER_DeleteDirectoryRecursively() +: fs.h +
      • +
      • FSUSER_DeleteExtSaveData() +: fs.h +
      • +
      • FSUSER_DeleteFile() +: fs.h +
      • +
      • FSUSER_DeleteSdmcRoot() +: fs.h +
      • +
      • FSUSER_DeleteSystemSaveData() +: fs.h +
      • +
      • FSUSER_EnumerateExtSaveData() +: fs.h +
      • +
      • FSUSER_EnumerateSystemSaveData() +: fs.h +
      • +
      • FSUSER_ExportIntegrityVerificationSeed() +: fs.h +
      • +
      • FSUSER_FormatSaveData() +: fs.h +
      • +
      • FSUSER_GetArchivePriority() +: fs.h +
      • +
      • FSUSER_GetArchiveResource() +: fs.h +
      • +
      • FSUSER_GetCardType() +: fs.h +
      • +
      • FSUSER_GetExtDataBlockSize() +: fs.h +
      • +
      • FSUSER_GetFormatInfo() +: fs.h +
      • +
      • FSUSER_GetFreeBytes() +: fs.h +
      • +
      • FSUSER_GetLegacyBannerData() +: fs.h +
      • +
      • FSUSER_GetLegacyRomHeader() +: fs.h +
      • +
      • FSUSER_GetLegacyRomHeader2() +: fs.h +
      • +
      • FSUSER_GetLegacySubBannerData() +: fs.h +
      • +
      • FSUSER_GetMediaType() +: fs.h +
      • +
      • FSUSER_GetNandArchiveResource() +: fs.h +
      • +
      • FSUSER_GetNandCid() +: fs.h +
      • +
      • FSUSER_GetNandLog() +: fs.h +
      • +
      • FSUSER_GetNandSpeedInfo() +: fs.h +
      • +
      • FSUSER_GetPriority() +: fs.h +
      • +
      • FSUSER_GetProductInfo() +: fs.h +
      • +
      • FSUSER_GetProgramLaunchInfo() +: fs.h +
      • +
      • FSUSER_GetSaveDataSecureValue() +: fs.h +
      • +
      • FSUSER_GetSdmcArchiveResource() +: fs.h +
      • +
      • FSUSER_GetSdmcCid() +: fs.h +
      • +
      • FSUSER_GetSdmcCtrRootPath() +: fs.h +
      • +
      • FSUSER_GetSdmcFatfsError() +: fs.h +
      • +
      • FSUSER_GetSdmcLog() +: fs.h +
      • +
      • FSUSER_GetSdmcSpeedInfo() +: fs.h +
      • +
      • FSUSER_GetSpecialContentIndex() +: fs.h +
      • +
      • FSUSER_GetSpecialFileSize() +: fs.h +
      • +
      • FSUSER_ImportIntegrityVerificationSeed() +: fs.h +
      • +
      • FSUSER_Initialize() +: fs.h +
      • +
      • FSUSER_InitializeCtrFileSystem() +: fs.h +
      • +
      • FSUSER_InitializeWithSdkVersion() +: fs.h +
      • +
      • FSUSER_IsSdmcDetected() +: fs.h +
      • +
      • FSUSER_IsSdmcWritable() +: fs.h +
      • +
      • FSUSER_OpenArchive() +: fs.h +
      • +
      • FSUSER_OpenDirectory() +: fs.h +
      • +
      • FSUSER_OpenFile() +: fs.h +
      • +
      • FSUSER_OpenFileDirectly() +: fs.h +
      • +
      • FSUSER_QueryTotalQuotaSize() +: fs.h +
      • +
      • FSUSER_ReadExtSaveDataIcon() +: fs.h +
      • +
      • FSUSER_ReadSpecialFile() +: fs.h +
      • +
      • FSUSER_RenameDirectory() +: fs.h +
      • +
      • FSUSER_RenameFile() +: fs.h +
      • +
      • FSUSER_SendInitializeInfoTo9() +: fs.h +
      • +
      • FSUSER_SetArchivePriority() +: fs.h +
      • +
      • FSUSER_SetCardSpiBaudRate() +: fs.h +
      • +
      • FSUSER_SetCardSpiBusMode() +: fs.h +
      • +
      • FSUSER_SetCtrCardLatencyParameter() +: fs.h +
      • +
      • FSUSER_SetPriority() +: fs.h +
      • +
      • FSUSER_SetSaveDataSecureValue() +: fs.h +
      • +
      • FSUSER_StartDeviceMoveAsDestination() +: fs.h +
      • +
      • FSUSER_StartDeviceMoveAsSource() +: fs.h +
      • +
      • FSUSER_SwitchCleanupInvalidSaveData() +: fs.h +
      • +
      • fsUseSession() +: fs.h +
      diff --git a/globals_func_c.html b/globals_func_c.html index d18d14d..6aa4476 100644 --- a/globals_func_c.html +++ b/globals_func_c.html @@ -333,6 +333,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    • cfgnorWriteFlash() : cfgnor.h
    • +
    • CFGU_GenHashConsoleUnique() +: cfgu.h +
    • +
    • CFGU_GetConfigInfoBlk2() +: cfgu.h +
    • +
    • CFGU_GetCountryCodeID() +: cfgu.h +
    • +
    • CFGU_GetCountryCodeString() +: cfgu.h +
    • +
    • CFGU_GetModelNintendo2DS() +: cfgu.h +
    • +
    • CFGU_GetRegionCanadaUSA() +: cfgu.h +
    • +
    • CFGU_GetSystemLanguage() +: cfgu.h +
    • +
    • CFGU_GetSystemModel() +: cfgu.h +
    • +
    • CFGU_SecureInfoGetRegion() +: cfgu.h +
    • +
    • cfguExit() +: cfgu.h +
    • +
    • cfguInit() +: cfgu.h +
    • consoleClear() : console.h
    • diff --git a/globals_func_f.html b/globals_func_f.html index e6fbdfe..3623c11 100644 --- a/globals_func_f.html +++ b/globals_func_f.html @@ -132,6 +132,345 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    • f32tof31() : gpu.h
    • +
    • FSDIR_Close() +: fs.h +
    • +
    • FSDIR_Control() +: fs.h +
    • +
    • FSDIR_GetPriority() +: fs.h +
    • +
    • FSDIR_Read() +: fs.h +
    • +
    • FSDIR_SetPriority() +: fs.h +
    • +
    • fsEndUseSession() +: fs.h +
    • +
    • fsExit() +: fs.h +
    • +
    • FSFILE_Close() +: fs.h +
    • +
    • FSFILE_Control() +: fs.h +
    • +
    • FSFILE_Flush() +: fs.h +
    • +
    • FSFILE_GetAttributes() +: fs.h +
    • +
    • FSFILE_GetPriority() +: fs.h +
    • +
    • FSFILE_GetSize() +: fs.h +
    • +
    • FSFILE_OpenLinkFile() +: fs.h +
    • +
    • FSFILE_OpenSubFile() +: fs.h +
    • +
    • FSFILE_Read() +: fs.h +
    • +
    • FSFILE_SetAttributes() +: fs.h +
    • +
    • FSFILE_SetPriority() +: fs.h +
    • +
    • FSFILE_SetSize() +: fs.h +
    • +
    • FSFILE_Write() +: fs.h +
    • +
    • fsGetSessionHandle() +: fs.h +
    • +
    • fsInit() +: fs.h +
    • +
    • fsMakePath() +: fs.h +
    • +
    • FSUSER_AbnegateAccessRight() +: fs.h +
    • +
    • FSUSER_CardNorDirectCommand() +: fs.h +
    • +
    • FSUSER_CardNorDirectCommandWithAddress() +: fs.h +
    • +
    • FSUSER_CardNorDirectCpuWriteWithoutVerify() +: fs.h +
    • +
    • FSUSER_CardNorDirectRead() +: fs.h +
    • +
    • FSUSER_CardNorDirectRead_4xIO() +: fs.h +
    • +
    • FSUSER_CardNorDirectReadWithAddress() +: fs.h +
    • +
    • FSUSER_CardNorDirectSectorEraseWithoutVerify() +: fs.h +
    • +
    • FSUSER_CardNorDirectWrite() +: fs.h +
    • +
    • FSUSER_CardNorDirectWriteWithAddress() +: fs.h +
    • +
    • FSUSER_CardSlotGetCardIFPowerStatus() +: fs.h +
    • +
    • FSUSER_CardSlotIsInserted() +: fs.h +
    • +
    • FSUSER_CardSlotPowerOff() +: fs.h +
    • +
    • FSUSER_CardSlotPowerOn() +: fs.h +
    • +
    • FSUSER_CheckAuthorityToAccessExtSaveData() +: fs.h +
    • +
    • FSUSER_ClearNandLog() +: fs.h +
    • +
    • FSUSER_ClearSdmcLog() +: fs.h +
    • +
    • FSUSER_CloseArchive() +: fs.h +
    • +
    • FSUSER_Control() +: fs.h +
    • +
    • FSUSER_ControlArchive() +: fs.h +
    • +
    • FSUSER_ControlSecureSave() +: fs.h +
    • +
    • FSUSER_CreateDirectory() +: fs.h +
    • +
    • FSUSER_CreateExtSaveData() +: fs.h +
    • +
    • FSUSER_CreateFile() +: fs.h +
    • +
    • FSUSER_CreateSeed() +: fs.h +
    • +
    • FSUSER_CreateSystemSaveData() +: fs.h +
    • +
    • FSUSER_DeleteAllExtSaveDataOnNand() +: fs.h +
    • +
    • FSUSER_DeleteDirectory() +: fs.h +
    • +
    • FSUSER_DeleteDirectoryRecursively() +: fs.h +
    • +
    • FSUSER_DeleteExtSaveData() +: fs.h +
    • +
    • FSUSER_DeleteFile() +: fs.h +
    • +
    • FSUSER_DeleteSdmcRoot() +: fs.h +
    • +
    • FSUSER_DeleteSystemSaveData() +: fs.h +
    • +
    • FSUSER_EnumerateExtSaveData() +: fs.h +
    • +
    • FSUSER_EnumerateSystemSaveData() +: fs.h +
    • +
    • FSUSER_ExportIntegrityVerificationSeed() +: fs.h +
    • +
    • FSUSER_FormatSaveData() +: fs.h +
    • +
    • FSUSER_GetArchivePriority() +: fs.h +
    • +
    • FSUSER_GetArchiveResource() +: fs.h +
    • +
    • FSUSER_GetCardType() +: fs.h +
    • +
    • FSUSER_GetExtDataBlockSize() +: fs.h +
    • +
    • FSUSER_GetFormatInfo() +: fs.h +
    • +
    • FSUSER_GetFreeBytes() +: fs.h +
    • +
    • FSUSER_GetLegacyBannerData() +: fs.h +
    • +
    • FSUSER_GetLegacyRomHeader() +: fs.h +
    • +
    • FSUSER_GetLegacyRomHeader2() +: fs.h +
    • +
    • FSUSER_GetLegacySubBannerData() +: fs.h +
    • +
    • FSUSER_GetMediaType() +: fs.h +
    • +
    • FSUSER_GetNandArchiveResource() +: fs.h +
    • +
    • FSUSER_GetNandCid() +: fs.h +
    • +
    • FSUSER_GetNandLog() +: fs.h +
    • +
    • FSUSER_GetNandSpeedInfo() +: fs.h +
    • +
    • FSUSER_GetPriority() +: fs.h +
    • +
    • FSUSER_GetProductInfo() +: fs.h +
    • +
    • FSUSER_GetProgramLaunchInfo() +: fs.h +
    • +
    • FSUSER_GetSaveDataSecureValue() +: fs.h +
    • +
    • FSUSER_GetSdmcArchiveResource() +: fs.h +
    • +
    • FSUSER_GetSdmcCid() +: fs.h +
    • +
    • FSUSER_GetSdmcCtrRootPath() +: fs.h +
    • +
    • FSUSER_GetSdmcFatfsError() +: fs.h +
    • +
    • FSUSER_GetSdmcLog() +: fs.h +
    • +
    • FSUSER_GetSdmcSpeedInfo() +: fs.h +
    • +
    • FSUSER_GetSpecialContentIndex() +: fs.h +
    • +
    • FSUSER_GetSpecialFileSize() +: fs.h +
    • +
    • FSUSER_ImportIntegrityVerificationSeed() +: fs.h +
    • +
    • FSUSER_Initialize() +: fs.h +
    • +
    • FSUSER_InitializeCtrFileSystem() +: fs.h +
    • +
    • FSUSER_InitializeWithSdkVersion() +: fs.h +
    • +
    • FSUSER_IsSdmcDetected() +: fs.h +
    • +
    • FSUSER_IsSdmcWritable() +: fs.h +
    • +
    • FSUSER_OpenArchive() +: fs.h +
    • +
    • FSUSER_OpenDirectory() +: fs.h +
    • +
    • FSUSER_OpenFile() +: fs.h +
    • +
    • FSUSER_OpenFileDirectly() +: fs.h +
    • +
    • FSUSER_QueryTotalQuotaSize() +: fs.h +
    • +
    • FSUSER_ReadExtSaveDataIcon() +: fs.h +
    • +
    • FSUSER_ReadSpecialFile() +: fs.h +
    • +
    • FSUSER_RenameDirectory() +: fs.h +
    • +
    • FSUSER_RenameFile() +: fs.h +
    • +
    • FSUSER_SendInitializeInfoTo9() +: fs.h +
    • +
    • FSUSER_SetArchivePriority() +: fs.h +
    • +
    • FSUSER_SetCardSpiBaudRate() +: fs.h +
    • +
    • FSUSER_SetCardSpiBusMode() +: fs.h +
    • +
    • FSUSER_SetCtrCardLatencyParameter() +: fs.h +
    • +
    • FSUSER_SetPriority() +: fs.h +
    • +
    • FSUSER_SetSaveDataSecureValue() +: fs.h +
    • +
    • FSUSER_StartDeviceMoveAsDestination() +: fs.h +
    • +
    • FSUSER_StartDeviceMoveAsSource() +: fs.h +
    • +
    • FSUSER_SwitchCleanupInvalidSaveData() +: fs.h +
    • +
    • fsUseSession() +: fs.h +
    diff --git a/globals_m.html b/globals_m.html index 9d57f05..3feee99 100644 --- a/globals_m.html +++ b/globals_m.html @@ -136,6 +136,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • mappableSpaceFree() : mappable.h
  • +
  • MEDIATYPE_GAME_CARD +: fs.h +
  • +
  • MEDIATYPE_NAND +: fs.h +
  • +
  • MEDIATYPE_SD +: fs.h +
  • MemOp : svc.h
  • diff --git a/globals_p.html b/globals_p.html index f52b79e..cba4b92 100644 --- a/globals_p.html +++ b/globals_p.html @@ -127,6 +127,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • PACKED : types.h
  • +
  • PATH_ASCII +: fs.h +
  • +
  • PATH_BINARY +: fs.h +
  • +
  • PATH_EMPTY +: fs.h +
  • +
  • PATH_INVALID +: fs.h +
  • +
  • PATH_UTF16 +: fs.h +
  • PHOTO_MODE_LANDSCAPE : cam.h
  • diff --git a/globals_s.html b/globals_s.html index 621d75e..6404530 100644 --- a/globals_s.html +++ b/globals_s.html @@ -145,6 +145,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • sdmcInit() : sdmc.h
  • +
  • SECURESAVE_ACTION_DELETE +: fs.h +
  • +
  • SECURESAVE_ACTION_FORMAT +: fs.h +
  • +
  • SECUREVALUE_SLOT_SD +: fs.h +
  • SELECT_ALL : cam.h
  • @@ -274,6 +283,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • SOUND_REPEAT : csnd.h
  • +
  • SPECIALCONTENT_DLP_CHILD +: fs.h +
  • +
  • SPECIALCONTENT_MANUAL +: fs.h +
  • +
  • SPECIALCONTENT_UPDATE +: fs.h +
  • srvEnableNotification() : srv.h
  • diff --git a/hid_8h.html b/hid_8h.html index 114eb14..027d510 100644 --- a/hid_8h.html +++ b/hid_8h.html @@ -520,7 +520,7 @@ Variables

    Gets keys that were just pressed.

    Individual keys can be checked by ORing them with this value.

    Returns
    Keys down.
    -
    Examples:
    app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
    +
    Examples:
    app_launch/source/main.c, audio/mic/source/main.c, get_system_language/source/main.c, graphics/bitmap/24bit-color/source/main.c, graphics/gpu/geoshader/source/main.c, graphics/gpu/simple_tri/source/main.c, graphics/gpu/textured_cube/source/main.c, graphics/printing/both-screen-text/source/main.c, graphics/printing/colored-text/source/main.c, graphics/printing/hello-world/source/main.c, graphics/printing/multiple-windows-text/source/main.c, http/source/main.c, input/read-controls/source/main.c, input/touch-screen/source/main.c, libapplet_launch/source/main.c, mvd/source/main.c, qtm/source/main.c, threads/event/source/main.c, and time/rtc/source/main.c.
    diff --git a/structFS__ExtSaveDataInfo.html b/structFS__ExtSaveDataInfo.html index a1f8934..79108b3 100644 --- a/structFS__ExtSaveDataInfo.html +++ b/structFS__ExtSaveDataInfo.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    Data Fields

    -FS_MediaType mediaType: 8 +FS_MediaType mediaType: 8  Media type.
      diff --git a/structFS__Path.html b/structFS__Path.html index 489aaef..0ae1048 100644 --- a/structFS__Path.html +++ b/structFS__Path.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    Data Fields

    -FS_PathType type +FS_PathType type  FS path type.
      diff --git a/structFS__ProgramInfo.html b/structFS__ProgramInfo.html index 6d04a6d..1d8d4bf 100644 --- a/structFS__ProgramInfo.html +++ b/structFS__ProgramInfo.html @@ -102,7 +102,7 @@ Data Fields  Program ID.
      -FS_MediaType mediaType: 8 +FS_MediaType mediaType: 8  Media type.
      diff --git a/structFS__SystemSaveDataInfo.html b/structFS__SystemSaveDataInfo.html index d1c4b1f..f7d322a 100644 --- a/structFS__SystemSaveDataInfo.html +++ b/structFS__SystemSaveDataInfo.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    Data Fields

    -FS_MediaType mediaType: 8 +FS_MediaType mediaType: 8  Media type.