mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-16 08:36:37 +02:00
Gitignore tests/ folder
This commit is contained in:
@@ -10,3 +10,4 @@ _search_save_type.py
|
||||
notalterra-linux
|
||||
notalterra-windows.exe
|
||||
notalterra
|
||||
/tests/
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import struct
|
||||
d = open('samples/savegame_0.sav','rb').read()
|
||||
i = d.find(b'ElapsedTimeDouble')
|
||||
print('ElapsedTimeDouble found at:', i)
|
||||
i2 = d.find(b'Elapsed')
|
||||
print('Elapsed found at:', i2)
|
||||
# Check FName encoding at position i2-4
|
||||
print('u32 at i2-4:', struct.unpack_from('<I', d, i2-4)[0])
|
||||
print('Expected:', len(b'Elapsed')+1)
|
||||
Reference in New Issue
Block a user