aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source/libcartreset/cartreset_nolibfat.h
blob: 133ae97e0fc78236da4d9b90c6b026f87e248f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**********************************
  Copyright (C) Rick Wong (Lick)
  http://licklick.wordpress.com/
***********************************/
#ifndef CARTRESET_H
#define CARTRESET_H

#include <fat.h>


#ifdef __cplusplus
extern "C" {
#endif

#ifdef ARM9
// Auto detect:
#define DEVICE_TYPE_AUTO        0x00000000 // doesn't work in libcartreset "nolibfat" version

// Not supported:
#define DEVICE_TYPE_FCSR        0x52534346
#define DEVICE_TYPE_MMCF        0x46434D4D
#define DEVICE_TYPE_NJSD        0x44534A4E
#define DEVICE_TYPE_NMMC        0x434D4D4E

// Supported:
#define DEVICE_TYPE_EFA2        0x32414645
#define DEVICE_TYPE_MPCF        0x4643504D
#define DEVICE_TYPE_M3CF        0x4643334D
#define DEVICE_TYPE_M3SD        0x4453334D
#define DEVICE_TYPE_SCCF        0x46434353
#define DEVICE_TYPE_SCSD        0x44534353

// Supported, but libfat doesn't detect the device:
#define DEVICE_TYPE_EZSD        0x44535A45


bool cartSetMenuMode(u32 _deviceType);
void passmeloopEnter();

#endif


#ifdef ARM7

bool passmeloopQuery();
void cartExecute();

#endif


#ifdef __cplusplus
}
#endif

#endif