Skip to content

Commit

Permalink
red: do not use os.tmpname with rein
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeping committed Nov 17, 2023
1 parent a961349 commit d1d56cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions data/apps/red.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,7 @@ end
function framemenu.cmd.voiced(w)
local data = w:winmenu()
if not data then return end
local fname = os.tmpname()
os.remove(fname)
local fname = 'red-rein-data'

local t = select_sect(data, "voices")
io.file(fname..'.syn', t or '')
Expand All @@ -1292,8 +1291,7 @@ end
function framemenu.cmd.sprited(w)
local data = w:winmenu()
if not data then return end
local fname = os.tmpname()
os.remove(fname)
local fname = 'red-rein-data'

local t = select_sect(data, "spr")
io.file(fname..'.spr', t or '')
Expand Down

0 comments on commit d1d56cb

Please sign in to comment.