Reducing the size of the output files

Removing `love.filesystem.getSaveDirectory()` from the output targets.
This commit is contained in:
Seppi 2014-08-23 13:38:12 -04:00
parent 6379b1e7f9
commit 5051390391

View File

@ -377,7 +377,7 @@ function createActionButtons()
sb:SetText("Save") sb:SetText("Save")
sb:SetWidth(67) sb:SetWidth(67)
sb.OnClick = function(o) sb.OnClick = function(o)
local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.lua" local p = "sound.lua"
sound:save(p, true) sound:save(p, true)
frt:SetText("Saved to\n" .. p) frt:SetText("Saved to\n" .. p)
fr:SetVisible(true):SetModal(true):Center() fr:SetVisible(true):SetModal(true):Center()
@ -388,7 +388,7 @@ function createActionButtons()
lb:SetText("Load") lb:SetText("Load")
lb:SetWidth(67) lb:SetWidth(67)
lb.OnClick = function(o) lb.OnClick = function(o)
local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.lua" local p = "sound.lua"
sound:load(p) sound:load(p)
frt:SetText("Loaded from\n" .. p) frt:SetText("Loaded from\n" .. p)
fr:SetVisible(true):SetModal(true):Center() fr:SetVisible(true):SetModal(true):Center()
@ -399,7 +399,7 @@ function createActionButtons()
eb:SetText("Export WAV") eb:SetText("Export WAV")
eb:SetWidth(140) eb:SetWidth(140)
eb.OnClick = function(o) eb.OnClick = function(o)
local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.wav" local p = "sound.wav"
sound:exportWAV(p) sound:exportWAV(p)
frt:SetText("Exported WAV to\n" .. p) frt:SetText("Exported WAV to\n" .. p)
fr:SetVisible(true):SetModal(true):Center() fr:SetVisible(true):SetModal(true):Center()