Skip to content

Commit

Permalink
Fix + compartion mode
Browse files Browse the repository at this point in the history
Fix of string separator (# -> ###SEP###), as the previous one led to some bugs.

(And some debug mode for testing, just in case).
  • Loading branch information
TesterTesterov authored Feb 2, 2021
1 parent 8213753 commit 7f1d8d6
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions bsitool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
import sys
test_flag = False

if (test_flag):
zlo = open("en._bsi", 'rb')
dobro = open("en_._bsi", 'rb')
one = zlo.read(1)
two = dobro.read(1)
count = 0
while ((one != b'') and (two != b'')):
if (one != two):
print(count)
break
one = zlo.read(1)
two = dobro.read(1)
count += 1
zlo.close()
dobro.close()
exit()

String = ''
Mode = 0
Expand Down Expand Up @@ -39,7 +57,7 @@
OutFile.write(test)
except:
OutFile.write("@" + Bytes[Ukaz:Neo].hex(' '))
OutFile.write('\n#\n')
OutFile.write('\n###SEP###\n')
Ukaz = Neo+1
pass
Neo += 1
Expand Down Expand Up @@ -71,7 +89,7 @@
while (linenum < len(lines)):
line = lines[linenum]

if (line == '#\n'):
if (line == '###SEP###\n'):
ifer = True
try:
if (down[0] == '@'):
Expand Down

0 comments on commit 7f1d8d6

Please sign in to comment.