Debuggers: Using binary file mode for .schematics.
This commit is contained in:
parent
4dc5650023
commit
38aad32a8b
@ -217,7 +217,7 @@ function TestBlockAreasString()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
cFile:CreateFolder("schematics")
|
cFile:CreateFolder("schematics")
|
||||||
local f = io.open("schematics/StringTest.schematic", "w")
|
local f = io.open("schematics/StringTest.schematic", "wb")
|
||||||
f:write(Data)
|
f:write(Data)
|
||||||
f:close()
|
f:close()
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ function TestBlockAreasString()
|
|||||||
BA2:Clear()
|
BA2:Clear()
|
||||||
|
|
||||||
-- Load another area from a string in that file:
|
-- Load another area from a string in that file:
|
||||||
f = io.open("schematics/StringTest.schematic", "r")
|
f = io.open("schematics/StringTest.schematic", "rb")
|
||||||
Data = f:read("*all")
|
Data = f:read("*all")
|
||||||
if not(BA2:LoadFromSchematicString(Data)) then
|
if not(BA2:LoadFromSchematicString(Data)) then
|
||||||
LOG("Cannot load schematic from string")
|
LOG("Cannot load schematic from string")
|
||||||
|
Loading…
Reference in New Issue
Block a user