Difference between revisions of "AMPXI:IsImportDatabaseInitialized"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x003F0040] |- | 1 | Media Type |} =Response...")
 
(fixed wrong possible output values)
 
Line 27: Line 27:
 
| u8, isInitialized?
 
| u8, isInitialized?
 
|}
 
|}
 +
  
 
=Description=
 
=Description=
 
This checks whether /dbs/import.db exists (or is initialized) on the media indicated by the specified [[Filesystem_services#MediaType|Media Type]].
 
This checks whether /dbs/import.db exists (or is initialized) on the media indicated by the specified [[Filesystem_services#MediaType|Media Type]].
  
The output u8 seems to always be 0x0C regardless of the existence of import.db.
+
The output u8 remains 0 if import.db exists.
  
[[Filesystem_services#MediaType|Media Type]] must be either SD or NAND. If Game Card is specified, this will always return 0xD8C0801E (not supported).
+
[[Filesystem_services#MediaType|Media Type]] must be either SD or NAND. If Game Card is specified, this will always return 0xD8C0801E and set the output u8 to 2 (not supported).
  
 
Additionally, 0xE0A046DF is returned if import.db does not exist on the media.
 
Additionally, 0xE0A046DF is returned if import.db does not exist on the media.

Latest revision as of 00:00, 25 December 2021

Request[edit]

Index Word Description
0 Header code [0x003F0040]
1 Media Type

Response[edit]

Index Word Description
0 Header code [0x003F0080]
1 Result code
2 u8, isInitialized?


Description[edit]

This checks whether /dbs/import.db exists (or is initialized) on the media indicated by the specified Media Type.

The output u8 remains 0 if import.db exists.

Media Type must be either SD or NAND. If Game Card is specified, this will always return 0xD8C0801E and set the output u8 to 2 (not supported).

Additionally, 0xE0A046DF is returned if import.db does not exist on the media.