PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
apa-opt.h
1
#ifndef _APA_OPT_H
2
#define _APA_OPT_H
3
4
#define APA_PRINTF(format, ...) printf(format, ##__VA_ARGS__)
5
#define APA_DRV_NAME "hdd"
6
7
#ifdef APA_POSIX_VER
8
#define APA_ALLOW_REMOVE_PARTITION_WITH_LEADING_UNDERSCORE 1
9
#define APA_FORMAT_LOCK_MBR 1
10
#define APA_FORMAT_MAKE_PARTITIONS 1
11
#define APA_STAT_RETURN_PART_LBA 1
12
#define APA_SUPPORT_HDL 1
13
#define APA_SUPPORT_IOCTL_GETPARTSTART 1
14
#define APA_SUPPORT_MBR 1
15
#define APA_WORKAROUND_LESS_THAN_40GB_CAPACITY 1
16
#define APA_8MB_PARTITION_SIZE 1
17
#else
18
/* Define APA_OSD_VER in your Makefile to build an OSD version, which will:
19
1. (currently disabled) When formatting, do not create any partitions other than __mbr.
20
2. __mbr will be formatted with its password.
21
3. All partitions can be accessed, even without the right password.
22
4. The starting LBA of the partition will be returned in
23
the private_5 field of the stat structure (returned by getstat and dread). */
24
25
#ifdef APA_XOSD_VER
26
#define APA_OSD_VER
27
#define APA_SUPPORT_BHDD
28
#endif
29
30
#ifdef APA_OSD_VER
31
#define APA_STAT_RETURN_PART_LBA 1
32
#define APA_FORMAT_LOCK_MBR 1
33
#define APA_FORMAT_MAKE_PARTITIONS 1
// For now, define this because I don't think we're ready (and want to) deal with the official passwords.
34
#else
35
#define APA_ENABLE_PASSWORDS 1
36
#define APA_FORMAT_MAKE_PARTITIONS 1
37
#endif
38
#endif
39
40
// Module version
41
#define APA_MODVER_MAJOR 2
42
#define APA_MODVER_MINOR 5
43
44
#ifdef _IOP
45
#define APA_ENTRYPOINT _start
46
#else
47
#define APA_ENTRYPOINT apa_start
48
#endif
49
50
#endif
iop
hdd
apa
src
apa-opt.h
Generated on Wed Jul 9 2025 22:43:34 for PS2SDK by
1.12.0