@@ -124,6 +124,7 @@ interface
function GetShortName(const n:TCmdStr):TCmdStr;
function maybequoted(const s:string):string;
function maybequoted(const s:ansistring):ansistring;
+ function maybequoted_for_script(const s:ansistring; quote_script: tscripttype):ansistring;
procedure InitFileUtils;
procedure DoneFileUtils;
@@ -377,7 +377,7 @@ procedure TWinLikeResourceFile.Collect(const fn: ansistring);
begin
if fResScript=nil then
fResScript:=TScript.Create(fScriptName);
- fResScript.Add(MaybeQuoted(fn));
+ fResScript.Add(maybequoted_for_script(fn,script_fpcres));
inc(fCollectCount);
end;
@@ -273,7 +273,8 @@
tscripttype = (script_none
,script_dos,script_unix,script_amiga,
- script_mpw
+ script_mpw,
+ script_fpcres
);
tabi = (abi_default