summaryrefslogtreecommitdiff
path: root/arm9/lib/NitroSDK/include/FS_rom.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/lib/NitroSDK/include/FS_rom.h')
-rw-r--r--arm9/lib/NitroSDK/include/FS_rom.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arm9/lib/NitroSDK/include/FS_rom.h b/arm9/lib/NitroSDK/include/FS_rom.h
new file mode 100644
index 00000000..bd0cd73b
--- /dev/null
+++ b/arm9/lib/NitroSDK/include/FS_rom.h
@@ -0,0 +1,24 @@
+#ifndef NITRO_FS_ROM_H_
+#define NITRO_FS_ROM_H_
+
+#include "FS_archive.h"
+#include "FS_file.h"
+#include "CARD_rom.h"
+#include "nitro/types.h"
+
+extern FSArchive fsi_arc_rom;
+extern s32 fsi_card_lock_id;
+extern CARDRomRegion fsi_ovt7;
+extern CARDRomRegion fsi_ovt9;
+
+void FSi_OnRomReadDone(void * p_arc);
+FSResult FSi_ReadRomCallback(FSArchive * p_arc, void * dst, u32 src, u32 len);
+FSResult FSi_WriteDummyCallback(FSArchive * p_arc, const void *src, u32 dst, u32 len);
+FSResult FSi_RomArchiveProc(FSFile * p_arc, FSCommandType cmd);
+FSResult FSi_ReadDummyCallback(FSArchive *p_arc, void *dst, u32 src, u32 len);
+FSResult FSi_EmptyArchiveProc(FSFile *p_file, FSCommandType cmd);
+void FSi_InitRom(u32 default_dma_no);
+u32 FS_SetDefaultDMA(u32 dma_no);
+u32 FS_TryLoadTable(void * p_mem, u32 size);
+
+#endif //NITRO_FS_ROM_H_