1
0
mirror of synced 2024-12-17 22:55:52 +01:00

vfs: specifying path no longer required

This commit is contained in:
Kevin Trocolli 2024-01-09 20:29:55 -05:00
parent 3d4db834af
commit 6c3636167d

View File

@ -41,8 +41,8 @@ HRESULT vfs_hook_init(const struct vfs_config *config)
memcpy(&vfs_config, config, sizeof(*config)); memcpy(&vfs_config, config, sizeof(*config));
if (config->path[0] == L'\0') { if (config->path[0] == L'\0') {
dprintf("VFS: !FATAL! Path not set for VFS!\n"); dprintf("No vfs folder specified, using default 'vfs' at CWD\n");
return E_FAIL; wcscpy_s(vfs_config.path, _countof(config->path), L"vfs");
} }
vfs_fixup_path(vfs_config.path, _countof(vfs_config.path)); vfs_fixup_path(vfs_config.path, _countof(vfs_config.path));