Skip to content

Commit 62ebf16

Browse files
authored
Update cs11.ts
1 parent e68e301 commit 62ebf16

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

cs11.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//%color=#444444 icon="\uf07b"
2-
namespace CS11 {
2+
namespace IM01 {
33
let sdFlag = false
4-
//%block="CS11 size of file %u"
4+
//%block="IM01 size of file %u"
55
//%u.defl="log.txt"
66
function sizeOfFile(u: string): number {
77
u = truncateStringLength(u)
@@ -12,7 +12,7 @@ namespace CS11 {
1212
return size(u)
1313
}
1414

15-
//%block="CS11 remove file"
15+
//%block="IM01 remove file"
1616
//%u.defl="log.txt"
1717
export function removeFile(u: string): void {
1818
u = truncateStringLength(u)
@@ -24,7 +24,7 @@ namespace CS11 {
2424
return
2525
}
2626

27-
//%block="CS11 file %u exists"
27+
//%block="IM01 file %u exists"
2828
//%u.defl="log.txt"
2929
export function fileExists(u: string): boolean {
3030
u = truncateStringLength(u)
@@ -35,31 +35,31 @@ namespace CS11 {
3535
return exists(u)
3636
}
3737

38-
//%block="CS11 overwrite file %u with %v"
38+
//%block="IM01 overwrite file %u with %v"
3939
//%u.defl="log.txt"
4040
export function overwriteFile(u: string, v: string): void {
4141
u = truncateStringLength(u)
4242
file(u, v, 0x02 | 0x08)
4343
return
4444
}
4545

46-
//%block="CS11 append file %u with %v"
46+
//%block="IM01 append file %u with %v"
4747
//%u.defl="log.txt"
4848
export function appendFile(u: string, v: string): void {
4949
u = truncateStringLength(u)
5050
file(u, v, 0x02 | 0x30)
5151
return
5252
}
5353

54-
//%block="CS11 append file %u with line %v"
54+
//%block="IM01 append file %u with line %v"
5555
//%u.defl="log.txt"
5656
export function appendFileLine(u: string, v: string): void {
5757
u = truncateStringLength(u)
5858
file(u, v + "\n", 0x02 | 0x30)
5959
return
6060
}
6161

62-
//%block="CS11 read file %u"
62+
//%block="IM01 read file %u"
6363
//%u.defl="log.txt"
6464
export function readFile(u: string): string {
6565
u = truncateStringLength(u)
@@ -70,38 +70,38 @@ namespace CS11 {
7070
return file_read(u)
7171
}
7272

73-
//%block="CS11 create folder %u"
73+
//%block="IM01 create folder %u"
7474
function createFolder(u: string): void {
7575
mkdir()
7676
return;
7777
}
7878

79-
//%shim=cs11::_mkdir
79+
//%shim=im01::_mkdir
8080
function mkdir(): void {
8181
return
8282
}
8383

84-
//%shim=cs11::_remove
84+
//%shim=im01::_remove
8585
function remove(u: string): void {
8686
return
8787
}
8888

89-
//%shim=cs11::_file
89+
//%shim=im01::_file
9090
function file(u: string, v: string, x: number): boolean {
9191
return true
9292
}
9393

94-
//%shim=cs11::_size
94+
//%shim=im01::_size
9595
function size(u: string): number {
9696
return 1
9797
}
9898

99-
//%shim=cs11::_exists
99+
//%shim=im01::_exists
100100
function exists(u: string): boolean {
101101
return true
102102
}
103103

104-
//%shim=cs11::_read
104+
//%shim=im01::_read
105105
function file_read(u: string): string {
106106
return ""
107107
}
@@ -118,4 +118,4 @@ namespace CS11 {
118118
mkdir()
119119

120120

121-
}
121+
}

0 commit comments

Comments
 (0)