From 1a0f741e3e06a62c944d90b70a28ebb384e2044b Mon Sep 17 00:00:00 2001 From: WillowSauceR Date: Tue, 29 Aug 2023 16:11:25 +0800 Subject: [PATCH] feat: support for Chinese paths --- src/plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index 4aae62b..3179a5d 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -103,7 +103,8 @@ bool init_hooks(void) void create_plugin_dir(void) { // also init global path variables - GetCurrentDirectoryA(260, bds_path); + // GetCurrentDirectoryA(260, bds_path); + strcpy(bds_path, "."); sprintf(data_path, "%s\\plugins\\MediaPlayer", bds_path); sprintf(data_path_nbs, "%s\\nbs", data_path);