From f3b0db9c671c78cdf1cf127d5786f74425abb715 Mon Sep 17 00:00:00 2001 From: MAJigsaw77 <77043862+MAJigsaw77@users.noreply.github.com> Date: Fri, 24 Jan 2025 18:57:05 +0200 Subject: [PATCH] Don't reset the plugins cache if they don't exist. --- source/hxvlc/util/Handle.hx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/hxvlc/util/Handle.hx b/source/hxvlc/util/Handle.hx index c0a400be..97248fee 100644 --- a/source/hxvlc/util/Handle.hx +++ b/source/hxvlc/util/Handle.hx @@ -265,10 +265,13 @@ class Handle args.push_back("--no-xlib"); #if (windows || macos) - if (resetCache == false && FileSystem.exists(Path.join([pluginPath, 'plugins.dat']))) - args.push_back("--no-plugins-scan"); - else - args.push_back("--reset-plugins-cache"); + if (FileSystem.exists(Path.join([pluginPath, 'plugins.dat']))) + { + if (resetCache == true) + args.push_back("--reset-plugins-cache"); + else + args.push_back("--no-plugins-scan"); + } #end args.push_back("--text-renderer=none");