From 5051390391bb7f057e307c9bfebb034e2283f69f Mon Sep 17 00:00:00 2001 From: Seppi Date: Sat, 23 Aug 2014 13:38:12 -0400 Subject: [PATCH] Reducing the size of the output files Removing `love.filesystem.getSaveDirectory()` from the output targets. --- main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index 9d679d7..7258d82 100644 --- a/main.lua +++ b/main.lua @@ -377,7 +377,7 @@ function createActionButtons() sb:SetText("Save") sb:SetWidth(67) sb.OnClick = function(o) - local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.lua" + local p = "sound.lua" sound:save(p, true) frt:SetText("Saved to\n" .. p) fr:SetVisible(true):SetModal(true):Center() @@ -388,7 +388,7 @@ function createActionButtons() lb:SetText("Load") lb:SetWidth(67) lb.OnClick = function(o) - local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.lua" + local p = "sound.lua" sound:load(p) frt:SetText("Loaded from\n" .. p) fr:SetVisible(true):SetModal(true):Center() @@ -399,7 +399,7 @@ function createActionButtons() eb:SetText("Export WAV") eb:SetWidth(140) eb.OnClick = function(o) - local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.wav" + local p = "sound.wav" sound:exportWAV(p) frt:SetText("Exported WAV to\n" .. p) fr:SetVisible(true):SetModal(true):Center()