Skip to content

Commit 7586a0d

Browse files
committed
Update ps2sdk submodule and modify ATAD device path handling for Linux compatibility; add example command list
1 parent 7e1da87 commit 7586a0d

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

external/ps2sdk

list.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
device /Users/imac/Desktop/HDD/POLgJ/po.raw
2+
df
3+
quit
4+
5+
device /Users/imac/Desktop/HDD/ps2-hdd_7z/dirge2006.raw
6+
mount 8
7+
df
8+
quit
9+
mount PP.SLPM-65981.0004.FMO
10+
df
11+
quit
12+
df
13+
quit
14+
ls
15+
quit
16+
mkpart 3 2G PFS
17+
rmpart 3
18+
ls -l
19+
quit

subprojects/fakeps2sdk/atad.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ int set_atad_device_handle(int fd)
9494

9595
void set_atad_device_path(const char *path)
9696
{
97-
int fd;
98-
fd = open(path, O_RDWR | O_BINARY);
97+
#ifdef __linux__
98+
int fd = open(path, O_RDWR | O_BINARY | O_DIRECT);
99+
#else
100+
int fd = open(path, O_RDWR | O_BINARY);
101+
#endif
99102
if (fd == -1 || set_atad_device_handle(fd)) {
100103
perror(path), exit(1);
101104
}

0 commit comments

Comments
 (0)