Changeset 135 for trunk/UTarget.pas
- Timestamp:
- Mar 5, 2022, 9:44:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTarget.pas
r133 r135 155 155 end; 156 156 157 const158 RunStateText: array[TRunState] of string = ('Stopped', 'Paused', 'Running',159 'Compiling');160 161 157 162 158 resourcestring … … 164 160 SExecutorNotFound = 'Executor "%s" not found'; 165 161 SCompiledFileNotFound = 'Program compiled file "%s" not found'; 162 SStopped = 'Stopped'; 163 SPaused = 'Paused'; 164 SRunning = 'Running'; 165 SCompiling = 'Compiling'; 166 SNone = 'None'; 167 SNormal = 'Normal'; 168 169 const 170 CompiledDir = 'compiled'; 171 172 var 173 RunStateText: array[TRunState] of string = (SStopped, SPaused, SRunning, 174 SCompiling); 175 CompilerOptimizationText: array[TCompilerOptimization] of string = (SNone, SNormal); 176 177 procedure UpdateTranslation; 166 178 167 179 168 180 implementation 181 182 procedure UpdateTranslation; 183 begin 184 RunStateText[rsStopped] := SStopped; 185 RunStateText[rsPaused] := SPaused; 186 RunStateText[rsRunning] := SRunning; 187 RunStateText[rsCompiling] := SCompiling; 188 CompilerOptimizationText[coNone] := SNone; 189 CompilerOptimizationText[coNormal] := SNormal; 190 end; 169 191 170 192 { TMessages } … … 464 486 begin 465 487 CompiledFile := ExtractFilePath(ProjectFileName) + 466 'compiled'+ DirectorySeparator + Name + DirectorySeparator +488 CompiledDir + DirectorySeparator + Name + DirectorySeparator + 467 489 ExtractFileNameOnly(ProjectFileName) + SourceExtension; 468 490 ForceDirectories(ExtractFilePath(CompiledFile)); … … 507 529 508 530 CompiledFile := ExtractFilePath(ProjectFileName) + 509 'compiled'+ DirectorySeparator + Name + DirectorySeparator +531 CompiledDir + DirectorySeparator + Name + DirectorySeparator + 510 532 ExtractFileNameOnly(ProjectFileName) + CompiledExtension; 511 533 RunFile := ExtractFilePath(ProjectFileName) + 512 'compiled'+ DirectorySeparator + Name + DirectorySeparator +534 CompiledDir + DirectorySeparator + Name + DirectorySeparator + 513 535 ExtractFileNameOnly(ProjectFileName) + RunExtension; 514 536 if not FileExists(ExecutorPath) then
Note:
See TracChangeset
for help on using the changeset viewer.