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
#else
17
/* Define APA_OSD_VER in your Makefile to build an OSD version, which will:
18
1. (currently disabled) When formatting, do not create any partitions other than __mbr.
19
2. __mbr will be formatted with its password.
20
3. All partitions can be accessed, even without the right password.
21
4. The starting LBA of the partition will be returned in
22
the private_5 field of the stat structure (returned by getstat and dread). */
23
24
#ifdef APA_XOSD_VER
25
#define APA_OSD_VER
26
#define APA_SUPPORT_BHDD
27
#endif
28
29
#ifdef APA_OSD_VER
30
#define APA_STAT_RETURN_PART_LBA 1
31
#define APA_FORMAT_LOCK_MBR 1
32
#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.
33
#else
34
#define APA_ENABLE_PASSWORDS 1
35
#define APA_FORMAT_MAKE_PARTITIONS 1
36
#endif
37
#endif
38
39
// Module version
40
#define APA_MODVER_MAJOR 2
41
#define APA_MODVER_MINOR 5
42
43
#ifdef _IOP
44
#define APA_ENTRYPOINT _start
45
#else
46
#define APA_ENTRYPOINT apa_start
47
#endif
48
49
#endif
iop
hdd
apa
src
apa-opt.h
Generated on Tue Feb 11 2025 21:35:58 for PS2SDK by
1.12.0