2014-05-19 21:29:48 +02:00
|
|
|
unit uResourcePaths;
|
|
|
|
|
2015-08-26 19:35:51 +02:00
|
|
|
{$WRITEABLECONST ON}
|
|
|
|
|
2014-05-19 21:29:48 +02:00
|
|
|
interface
|
|
|
|
|
|
|
|
Const
|
2019-12-17 21:44:54 +01:00
|
|
|
{
|
|
|
|
Relative paths from
|
|
|
|
<root>\bin\Win32
|
|
|
|
<root>\bin\Win64
|
|
|
|
to <root>\resource
|
|
|
|
}
|
2014-05-19 21:29:48 +02:00
|
|
|
cResourceMedia = '..\..\resource\media\';
|
2016-07-21 16:04:43 +02:00
|
|
|
cResourceFaces = '..\..\resource\faces\';
|
2014-05-19 21:29:48 +02:00
|
|
|
cResourceFaceDetect = '..\..\resource\facedetectxml\';
|
2024-06-12 18:47:00 +02:00
|
|
|
cResourceHaar = '..\..\resource\facedetectxml\';
|
|
|
|
cResourceHaar_newer = '..\..\resource\facedetectxml_newer\';
|
2015-08-26 19:35:51 +02:00
|
|
|
cResourceResultDefault = '..\..\resource\result\';
|
2014-05-19 21:29:48 +02:00
|
|
|
|
2015-08-26 19:35:51 +02:00
|
|
|
function cResourceResult: AnsiString;
|
2015-08-23 13:20:53 +02:00
|
|
|
|
2014-05-19 21:29:48 +02:00
|
|
|
implementation
|
|
|
|
|
2015-08-23 13:20:53 +02:00
|
|
|
uses
|
2019-09-16 13:29:05 +02:00
|
|
|
SysUtils;
|
2015-08-23 13:20:53 +02:00
|
|
|
|
2015-08-26 19:35:51 +02:00
|
|
|
function cResourceResult: AnsiString;
|
2015-08-23 13:20:53 +02:00
|
|
|
begin
|
2015-08-26 19:35:51 +02:00
|
|
|
if DirectoryExists(cResourceResultDefault) then
|
|
|
|
Result := cResourceResultDefault
|
2015-08-23 13:20:53 +02:00
|
|
|
else
|
|
|
|
Result := '';
|
|
|
|
end;
|
|
|
|
|
2014-05-19 21:29:48 +02:00
|
|
|
end.
|