mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +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()
|
local function createOrOpenEntityCaptureFile()
|
||||||
-- Make sure the file exists.
|
-- 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
|
if file ~= nil then file:close() end
|
||||||
|
|
||||||
-- Create or reopen entities CSV file.
|
-- 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
|
if file == nil then return nil end
|
||||||
|
|
||||||
return file
|
return file
|
||||||
|
Loading…
Reference in New Issue
Block a user