Changeset 13 for trunk/UInstance.pas


Ignore:
Timestamp:
Dec 18, 2017, 10:13:15 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Build under Lazarus 1.8.0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UInstance.pas

    r12 r13  
    6262function TInstance.GetCompiled: Boolean;
    6363begin
    64   Result := FileExistsUTF8(GetBinPath + DirectorySeparator + FPCSource.GetExecutableFile);
     64  Result := FileExists(GetBinPath + DirectorySeparator + FPCSource.GetExecutableFile);
    6565  if Assigned(IDESource) then Result := Result and
    66     FileExistsUTF8(GetPath + DirectorySeparator + IDESource.ProjectShortName +
     66    FileExists(GetPath + DirectorySeparator + IDESource.ProjectShortName +
    6767    DirectorySeparator + IDESource.GetExecutableFile);
    6868end;
     
    7070function TInstance.GetDownloaded: Boolean;
    7171begin
    72   Result := DirectoryExistsUTF8(GetPath + DirectorySeparator + FPCSource.ProjectShortName);
     72  Result := DirectoryExists(GetPath + DirectorySeparator + FPCSource.ProjectShortName);
    7373  if Assigned(IDESource) then Result := Result and
    74     DirectoryExistsUTF8(GetPath + DirectorySeparator + IDESource.ProjectShortName);
     74    DirectoryExists(GetPath + DirectorySeparator + IDESource.ProjectShortName);
    7575end;
    7676
     
    100100    OperationProgressForm.Path := GetPath + DirectorySeparator + IDESource.ProjectShortName;
    101101    OperationProgressForm.CommandLine :=
    102       'make bigideclean bigide OPT="-Xg"';
     102      'make OPT="-Xg"';
    103103    OperationProgressForm.ShowModal;
    104104  end;
     
    148148  ConfigPath := GetPath + DirectorySeparator + IDESource.ProjectShortName +
    149149    DirectorySeparator + 'config';
    150   ForceDirectoriesUTF8(ConfigPath);
     150  ForceDirectories(ConfigPath);
    151151  ConfigFileName := ConfigPath + DirectorySeparator + 'environmentoptions.xml';
    152   if not FileExistsUTF8(ConfigFileName) then
     152  if not FileExists(ConfigFileName) then
    153153  try
    154154    Config := TStringList.Create;
     
    161161    Config.Text := StringReplace(Config.Text, '%Make%', MainForm.GetBinUtilsDir + DirectorySeparator + 'make.exe', [rfReplaceAll]);
    162162    Config.Text := StringReplace(Config.Text, '%FPCCompiler%', GetBinPath + DirectorySeparator + FPCSource.ExecutableFile + '.exe', [rfReplaceAll]);
    163     Config.Text := StringReplace(Config.Text, '%Temp%', GetEnvironmentVariableUTF8('TEMP'), [rfReplaceAll]);
     163    Config.Text := StringReplace(Config.Text, '%Temp%', GetEnvironmentVariable('TEMP'), [rfReplaceAll]);
    164164    Config.Text := StringReplace(Config.Text, '%GDB%', MainForm.GetBinUtilsDir + DirectorySeparator + 'mingw\gdb.exe', [rfReplaceAll]);
    165165    {$ENDIF}
Note: See TracChangeset for help on using the changeset viewer.