From 6c3636167dfca75ea24583459192e85e086795e1 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Tue, 9 Jan 2024 20:29:55 -0500 Subject: [PATCH] vfs: specifying path no longer required --- platform/vfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/vfs.c b/platform/vfs.c index ca3bf29..43bb247 100644 --- a/platform/vfs.c +++ b/platform/vfs.c @@ -41,8 +41,8 @@ HRESULT vfs_hook_init(const struct vfs_config *config) memcpy(&vfs_config, config, sizeof(*config)); if (config->path[0] == L'\0') { - dprintf("VFS: !FATAL! Path not set for VFS!\n"); - return E_FAIL; + dprintf("No vfs folder specified, using default 'vfs' at CWD\n"); + wcscpy_s(vfs_config.path, _countof(config->path), L"vfs"); } vfs_fixup_path(vfs_config.path, _countof(vfs_config.path));