From 9113766c224db11cfb348800bf9d0ddf49969e30 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Wed, 24 May 2023 01:07:56 -0400 Subject: [PATCH] vfs: add D drive hooks --- platform/vfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/vfs.c b/platform/vfs.c index d356d7f..7bd2953 100644 --- a/platform/vfs.c +++ b/platform/vfs.c @@ -273,6 +273,8 @@ static HRESULT vfs_path_hook(const wchar_t *src, wchar_t *dest, size_t *count) } switch (src[0]) { + case L'D': // later AMDaemon versions default to D: for AMFS if it can't find it + case L'd': case L'e': case L'E': redir = vfs_config.amfs; @@ -404,7 +406,7 @@ static HRESULT vfs_path_hook_option( static HRESULT vfs_reg_read_amfs(void *bytes, uint32_t *nbytes) { - return reg_hook_read_wstr(bytes, nbytes, vfs_config.amfs); + return reg_hook_read_wstr(bytes, nbytes, vfs_config.amfs); // seems to be busted? } static HRESULT vfs_reg_read_appdata(void *bytes, uint32_t *nbytes)