trim unreal engine naming convention

This commit is contained in:
Mylloon 2024-09-17 14:31:13 +02:00
parent a8223cc90a
commit 08ecda10fe
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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