Changeset 13 for trunk/UInstance.pas
- Timestamp:
- Dec 18, 2017, 10:13:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UInstance.pas
r12 r13 62 62 function TInstance.GetCompiled: Boolean; 63 63 begin 64 Result := FileExists UTF8(GetBinPath + DirectorySeparator + FPCSource.GetExecutableFile);64 Result := FileExists(GetBinPath + DirectorySeparator + FPCSource.GetExecutableFile); 65 65 if Assigned(IDESource) then Result := Result and 66 FileExists UTF8(GetPath + DirectorySeparator + IDESource.ProjectShortName +66 FileExists(GetPath + DirectorySeparator + IDESource.ProjectShortName + 67 67 DirectorySeparator + IDESource.GetExecutableFile); 68 68 end; … … 70 70 function TInstance.GetDownloaded: Boolean; 71 71 begin 72 Result := DirectoryExists UTF8(GetPath + DirectorySeparator + FPCSource.ProjectShortName);72 Result := DirectoryExists(GetPath + DirectorySeparator + FPCSource.ProjectShortName); 73 73 if Assigned(IDESource) then Result := Result and 74 DirectoryExists UTF8(GetPath + DirectorySeparator + IDESource.ProjectShortName);74 DirectoryExists(GetPath + DirectorySeparator + IDESource.ProjectShortName); 75 75 end; 76 76 … … 100 100 OperationProgressForm.Path := GetPath + DirectorySeparator + IDESource.ProjectShortName; 101 101 OperationProgressForm.CommandLine := 102 'make bigideclean bigideOPT="-Xg"';102 'make OPT="-Xg"'; 103 103 OperationProgressForm.ShowModal; 104 104 end; … … 148 148 ConfigPath := GetPath + DirectorySeparator + IDESource.ProjectShortName + 149 149 DirectorySeparator + 'config'; 150 ForceDirectories UTF8(ConfigPath);150 ForceDirectories(ConfigPath); 151 151 ConfigFileName := ConfigPath + DirectorySeparator + 'environmentoptions.xml'; 152 if not FileExists UTF8(ConfigFileName) then152 if not FileExists(ConfigFileName) then 153 153 try 154 154 Config := TStringList.Create; … … 161 161 Config.Text := StringReplace(Config.Text, '%Make%', MainForm.GetBinUtilsDir + DirectorySeparator + 'make.exe', [rfReplaceAll]); 162 162 Config.Text := StringReplace(Config.Text, '%FPCCompiler%', GetBinPath + DirectorySeparator + FPCSource.ExecutableFile + '.exe', [rfReplaceAll]); 163 Config.Text := StringReplace(Config.Text, '%Temp%', GetEnvironmentVariable UTF8('TEMP'), [rfReplaceAll]);163 Config.Text := StringReplace(Config.Text, '%Temp%', GetEnvironmentVariable('TEMP'), [rfReplaceAll]); 164 164 Config.Text := StringReplace(Config.Text, '%GDB%', MainForm.GetBinUtilsDir + DirectorySeparator + 'mingw\gdb.exe', [rfReplaceAll]); 165 165 {$ENDIF}
Note:
See TracChangeset
for help on using the changeset viewer.