Skip to content

Commit 7f1d8d6

Browse files
Fix + compartion mode
Fix of string separator (# -> ###SEP###), as the previous one led to some bugs. (And some debug mode for testing, just in case).
1 parent 8213753 commit 7f1d8d6

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

bsitool.py

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
import sys
2+
test_flag = False
3+
4+
if (test_flag):
5+
zlo = open("en._bsi", 'rb')
6+
dobro = open("en_._bsi", 'rb')
7+
one = zlo.read(1)
8+
two = dobro.read(1)
9+
count = 0
10+
while ((one != b'') and (two != b'')):
11+
if (one != two):
12+
print(count)
13+
break
14+
one = zlo.read(1)
15+
two = dobro.read(1)
16+
count += 1
17+
zlo.close()
18+
dobro.close()
19+
exit()
220

321
String = ''
422
Mode = 0
@@ -39,7 +57,7 @@
3957
OutFile.write(test)
4058
except:
4159
OutFile.write("@" + Bytes[Ukaz:Neo].hex(' '))
42-
OutFile.write('\n#\n')
60+
OutFile.write('\n###SEP###\n')
4361
Ukaz = Neo+1
4462
pass
4563
Neo += 1
@@ -71,7 +89,7 @@
7189
while (linenum < len(lines)):
7290
line = lines[linenum]
7391

74-
if (line == '#\n'):
92+
if (line == '###SEP###\n'):
7593
ifer = True
7694
try:
7795
if (down[0] == '@'):

0 commit comments

Comments
 (0)