From e8c6c8bb8f29cebeb362107d00b599061427c171 Mon Sep 17 00:00:00 2001 From: David Vogel Date: Mon, 18 Jul 2022 11:48:49 +0200 Subject: [PATCH] Rename entities file suffix to json --- files/capture.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/capture.lua b/files/capture.lua index dc87363..d07cc94 100644 --- a/files/capture.lua +++ b/files/capture.lua @@ -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