From 8d3c33dc775e9ab5f16575ef6e3348d70dac91fa Mon Sep 17 00:00:00 2001 From: Will Xyen Date: Mon, 9 Jun 2025 04:31:25 -0700 Subject: [PATCH] iidxhook9: Add E drive to fshook --- src/main/iidxhook9/fs-hook.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/iidxhook9/fs-hook.c b/src/main/iidxhook9/fs-hook.c index b7e0df2..ae377e3 100644 --- a/src/main/iidxhook9/fs-hook.c +++ b/src/main/iidxhook9/fs-hook.c @@ -34,6 +34,15 @@ static void *my_avs_fs_mount(const char *dest, const char *src, const char *fs_t return real_avs_fs_mount(dest, dev_folder_drive, fs_type, options); } + if (src[0] == 'e' && src[1] == ':' && src[2] == '/' && src[3] == '\0') { + const char* dev_folder_drive = "dev/vfs/drive_e/"; + log_misc("Redirecting %s to %s", src, dev_folder_drive); + + CreateDirectoryA("dev/vfs/", NULL); + CreateDirectoryA("dev/vfs/drive_e/", NULL); + + return real_avs_fs_mount(dest, dev_folder_drive, fs_type, options); + } return real_avs_fs_mount(dest, src, fs_type, options); }