Skip to content

Commit

Permalink
trim unreal engine naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Mylloon committed Sep 17, 2024
1 parent a8223cc commit 08ecda1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OBSReplayFolders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ function get_running_game_title()
end
i = i - 1
end
return result:sub(i + 1, max)
local title = result:sub(i + 1, max)

-- Trim "-Win64-Shipping" if it exists
local trimmed_title = title:gsub("-Win64%-Shipping$", "")

return trimmed_title
end

function move(path, folder)
Expand Down

0 comments on commit 08ecda1

Please sign in to comment.