From 91f0c8d7401246bea2eb30a5745068df552aa717 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 16 Feb 2021 19:06:10 +0100 Subject: [PATCH] Fix: Set LocalesDirPath and ResourcesDirPath from FrameworkDirPath, if not set explicitly --- source/uCEFApplicationCore.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/uCEFApplicationCore.pas b/source/uCEFApplicationCore.pas index 2930abb2..f3c551d6 100644 --- a/source/uCEFApplicationCore.pas +++ b/source/uCEFApplicationCore.pas @@ -1112,8 +1112,8 @@ begin try TempMissingSubProc := not(CheckSubprocessPath(FBrowserSubprocessPath, FMissingLibFiles)); TempMissingFrm := not(CheckDLLs(FFrameworkDirPath, FMissingLibFiles)); - TempMissingRsc := not(CheckResources(FResourcesDirPath, FMissingLibFiles, FCheckDevToolsResources, not(FDisableExtensions))); - TempMissingLoc := not(CheckLocales(FLocalesDirPath, FMissingLibFiles, FLocalesRequired)); + TempMissingRsc := not(CheckResources(ResourcesDirPath, FMissingLibFiles, FCheckDevToolsResources, not(FDisableExtensions))); + TempMissingLoc := not(CheckLocales(LocalesDirPath, FMissingLibFiles, FLocalesRequired)); if TempMissingFrm or TempMissingRsc or TempMissingLoc or TempMissingSubProc then begin @@ -1373,8 +1373,8 @@ begin aSettings.log_file := CefString(FLogFile); aSettings.log_severity := FLogSeverity; aSettings.javascript_flags := CefString(FJavaScriptFlags); - aSettings.resources_dir_path := CefString(FResourcesDirPath); - aSettings.locales_dir_path := CefString(FLocalesDirPath); + aSettings.resources_dir_path := CefString(ResourcesDirPath); + aSettings.locales_dir_path := CefString(LocalesDirPath); aSettings.pack_loading_disabled := Ord(FPackLoadingDisabled); aSettings.remote_debugging_port := FRemoteDebuggingPort; aSettings.uncaught_exception_stack_size := FUncaughtExceptionStackSize;