mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-12-22 02:17:33 +00:00
Rename entities file suffix to json
This commit is contained in:
parent
cfe4193974
commit
e8c6c8bb8f
@ -125,11 +125,11 @@ end
|
||||
|
||||
local function createOrOpenEntityCaptureFile()
|
||||
-- Make sure the file exists.
|
||||
local file = io.open("mods/noita-mapcap/output/entities.csv", "a")
|
||||
local file = io.open("mods/noita-mapcap/output/entities.json", "a")
|
||||
if file ~= nil then file:close() end
|
||||
|
||||
-- Create or reopen entities CSV file.
|
||||
file = io.open("mods/noita-mapcap/output/entities.csv", "r+b") -- Open for reading (r) and writing (+) in binary mode. r+b will not truncate the file to 0.
|
||||
file = io.open("mods/noita-mapcap/output/entities.json", "r+b") -- Open for reading (r) and writing (+) in binary mode. r+b will not truncate the file to 0.
|
||||
if file == nil then return nil end
|
||||
|
||||
return file
|
||||
|
Loading…
Reference in New Issue
Block a user