From a8223cc90ae6b0f3e180a87cca50eb4f1fc63ea9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 21 Aug 2024 20:58:15 +0200 Subject: [PATCH] get folder location as soon as possible --- OBSReplayFolders.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OBSReplayFolders.lua b/OBSReplayFolders.lua index 123647b..f82862a 100644 --- a/OBSReplayFolders.lua +++ b/OBSReplayFolders.lua @@ -17,8 +17,8 @@ end function obs_frontend_callback(event) if event == obs.OBS_FRONTEND_EVENT_REPLAY_BUFFER_SAVED then - local path = get_replay_buffer_output() local folder = get_running_game_title() + local path = get_replay_buffer_output() if path ~= nil and folder ~= nil then print("Moving " .. path .. " to " .. folder) move(path, folder)