aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/llvm-mos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/llvm-mos.ts')
-rw-r--r--lib/compilers/llvm-mos.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/llvm-mos.ts b/lib/compilers/llvm-mos.ts
index 9ff68a784..026a0fe45 100644
--- a/lib/compilers/llvm-mos.ts
+++ b/lib/compilers/llvm-mos.ts
@@ -84,7 +84,7 @@ export class LLVMMOSCompiler extends ClangCompiler {
if (this.compiler.exe.includes('nes')) {
let nesFile = outputFilename;
if (outputFilename.endsWith('.elf')) {
- nesFile = outputFilename.substr(0, outputFilename.length - 4);
+ nesFile = outputFilename.substring(0, outputFilename.length - 4);
}
if (await utils.fileExists(nesFile)) {
@@ -93,7 +93,7 @@ export class LLVMMOSCompiler extends ClangCompiler {
} else if (this.compiler.exe.includes('c64')) {
let prgFile = outputFilename;
if (outputFilename.endsWith('.elf')) {
- prgFile = outputFilename.substr(0, outputFilename.length - 4);
+ prgFile = outputFilename.substring(0, outputFilename.length - 4);
}
if (await utils.fileExists(prgFile)) {