You've already forked CEF4Delphi
							
							
				mirror of
				https://github.com/salvadordf/CEF4Delphi.git
				synced 2025-10-30 23:07:52 +02:00 
			
		
		
		
	improve: allow to ignore devtools_resources.pak absence
Some projects does not use DevTools, so there is no need to include devtools_resources.pak into a project, but CEF4Delphi requires it. Make able to ignore devtools_resources.pak absence.
This commit is contained in:
		| @@ -138,7 +138,7 @@ function  GetDLLVersion(const aDLLFile : string; var aVersionInfo : TFileVersion | ||||
| function SplitLongString(aSrcString : string) : string; | ||||
| function GetAbsoluteDirPath(const aSrcPath : string; var aRsltPath : string) : boolean; | ||||
| function CheckLocales(const aLocalesDirPath : string) : boolean; | ||||
| function CheckResources(const aResourcesDirPath : string) : boolean; | ||||
| function CheckResources(const aResourcesDirPath : string; aCheckDevResources: boolean) : boolean; | ||||
| function CheckDLLs(const aFrameworkDirPath : string) : boolean; | ||||
| function CheckDLLVersion(const aDLLFile : string; aMajor, aMinor, aRelease, aBuild : uint16) : boolean; | ||||
|  | ||||
| @@ -696,7 +696,7 @@ begin | ||||
|     aRsltPath := ''; | ||||
| end; | ||||
|  | ||||
| function CheckResources(const aResourcesDirPath : string) : boolean; | ||||
| function CheckResources(const aResourcesDirPath : string; aCheckDevResources: boolean) : boolean; | ||||
| var | ||||
|   TempDir : string; | ||||
| begin | ||||
| @@ -710,7 +710,7 @@ begin | ||||
|               FileExists(TempDir + 'cef_100_percent.pak')    and | ||||
|               FileExists(TempDir + 'cef_200_percent.pak')    and | ||||
|               FileExists(TempDir + 'cef_extensions.pak')     and | ||||
|               FileExists(TempDir + 'devtools_resources.pak'); | ||||
|               (not aCheckDevResources or FileExists(TempDir + 'devtools_resources.pak')); | ||||
|   except | ||||
|     on e : exception do | ||||
|       if CustomExceptionHandler('CheckResources', e) then raise; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user