Renames in Store

This commit is contained in:
Cooldude2606
2019-08-23 21:41:43 +01:00
parent 70c60ddb5c
commit 5e1be09b3c
99 changed files with 820 additions and 755 deletions

View File

@@ -611,4 +611,12 @@ function Common.format_chat_player_name(player,raw_string)
end
end
--- Returns a desync safe file path for the current file
-- @tparam[opt=0] number offset the offset in the stack to get, 0 is current file
-- @treturn string the file path
function Common.get_file_path(offset)
offset = offset or 0
return debug.getinfo(offset+2, 'S').source:match('^.+/currently%-playing/(.+)$'):sub(1, -5)
end
return Common