Skip to content

Commit 8d3c33d

Browse files
willxincicex2
authored andcommitted
iidxhook9: Add E drive to fshook
1 parent 384fad8 commit 8d3c33d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/main/iidxhook9/fs-hook.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ static void *my_avs_fs_mount(const char *dest, const char *src, const char *fs_t
3434

3535
return real_avs_fs_mount(dest, dev_folder_drive, fs_type, options);
3636
}
37+
if (src[0] == 'e' && src[1] == ':' && src[2] == '/' && src[3] == '\0') {
38+
const char* dev_folder_drive = "dev/vfs/drive_e/";
39+
log_misc("Redirecting %s to %s", src, dev_folder_drive);
40+
41+
CreateDirectoryA("dev/vfs/", NULL);
42+
CreateDirectoryA("dev/vfs/drive_e/", NULL);
43+
44+
return real_avs_fs_mount(dest, dev_folder_drive, fs_type, options);
45+
}
3746

3847
return real_avs_fs_mount(dest, src, fs_type, options);
3948
}

0 commit comments

Comments
 (0)