Skip to content

Commit

Permalink
Don't reset the plugins cache if they don't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 committed Jan 24, 2025
1 parent 3ff44e6 commit f3b0db9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/hxvlc/util/Handle.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f3b0db9

Please sign in to comment.