From 08ecda10fe5522cf95385519bf5d2d34b05f17fc Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 17 Sep 2024 14:31:13 +0200 Subject: [PATCH] trim unreal engine naming convention --- OBSReplayFolders.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OBSReplayFolders.lua b/OBSReplayFolders.lua index f82862a..754edb8 100644 --- a/OBSReplayFolders.lua +++ b/OBSReplayFolders.lua @@ -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)