get folder location as soon as possible

This commit is contained in:
Mylloon 2024-08-21 20:58:15 +02:00
parent fc52643f43
commit a8223cc90a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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)