getLoadedFile
Definition
-- @/lua/ge/extensions/core/replay.lua:77
local function getLoadedFile()
return M.state.loadedFile
end
Callers
@/lua/ge/extensions/editor/camPathEditor.lua
-- Load the replay if it's different from current
if path.replay ~= core_replay.getLoadedFile() then
core_replay.loadFile(path.replay)
-- Path has no replay or replay doesn't exist - stop any current replay
if core_replay.getState() == 'playback' or core_replay.getLoadedFile() ~= '' then
core_replay.stop()
actionData.path = core_paths.createPath(core_paths.getUniquePathName('camPath'))
if core_replay.getLoadedFile() ~= '' then
actionData.path.replay = core_replay.getLoadedFile()
if core_replay.getLoadedFile() ~= '' then
actionData.path.replay = core_replay.getLoadedFile()
end
if linkReplay[0] then
if core_replay.getLoadedFile() then
editor.history:commitAction(
'ChangeReplayField',
{ path = M.currentPath, oldValue = M.currentPath.replay, newValue = core_replay.getLoadedFile() },
changeReplayFieldActionUndo,
im.PushItemWidth(-1) -- Use remaining width
if im.BeginCombo('##recordings', core_replay.getLoadedFile()) then
local files = core_replay.getRecordings()
@/lua/ge/extensions/core/cameraModes/path.lua
if replayExists(self.customData.path.replay) then
if (self.customData.path.replay ~= core_replay.getLoadedFile()) then
core_replay.loadFile(self.customData.path.replay)
@/lua/ge/extensions/core/replay.lua
if M.state.state == 'playback' and not M.requestedStartLevel then
log("I", "", string.format("Stopping replay playback. Reason: level changed from \"%s\" to \"%s\"", getLoadedFile(), levelPath))
displayMsg("info", "replay.stopPlayback")