getCurrentSaveSlot
Definition
-- @/lua/ge/extensions/career/saveSystem.lua:156
local function getCurrentSaveSlot()
return currentSaveSlot, currentSavePath
end
Callers
@/lua/ge/extensions/core/replay.lua
if career_career and career_career.isActive() then
local currentSaveSlot, _ = career_saveSystem.getCurrentSaveSlot()
finalPath = finalPath .. "career/" .. currentSaveSlot .. "/"
local currentSaveSlot, _ = career_saveSystem.getCurrentSaveSlot()
local isCurrentlyInCareer = career_career and career_career.isActive()
@/lua/ge/extensions/career/modules/playerAttributes.lua
-- load from saveslot
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/loanerVehicles.lua
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
local saveData = (savePath and jsonReadFile(savePath .. "/info.json")) or {}
@/lua/ge/extensions/career/modules/delivery/general.lua
local function loadSaveData()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/missionWrapper.lua
local function setCurrentSaveSlot()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not savePath then return end
@/lua/ge/extensions/career/modules/uiUtils.lua
local function getCareerSimpleStats()
local currentSaveSlot, _ = career_saveSystem.getCurrentSaveSlot()
local data = {
@/lua/ge/extensions/career/modules/vehicleShopping.lua
-- load from saveslot
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot or not savePath then return end
@/lua/ge/extensions/career/modules/log.lua
local saveRoot = career_saveSystem.getSaveRootDirectory()
local saveSlot, _ = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
logList = {}
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
addLog(string.format("Loaded game %s", savePath), "log")
@/lua/ge/extensions/career/modules/insurance/insurance.lua
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/milestones/milestones.lua
local function loadSaveData()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/linearTutorial.lua
-- load from saveslot
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
@/lua/ge/extensions/gameplay/crawl/saveSystem.lua
if career_career.isActive() then
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
saveFolder = savePath .. playerSavePathCareer
@/lua/ge/extensions/gameplay/drift/saveLoad.lua
if career_career.isActive() then
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
saveFolder = savePath .. savePathCareer
@/lua/ge/extensions/gameplay/statistic.lua
-- load current saveslot stats
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/partInventory.lua
if not career_career.isActive() then return false end
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/career.lua
imgui.SetNextWindowSize(imgui.ImVec2(300, 300), imgui.Cond_FirstUseEver)
imgui.Begin("Career Debug (Save File: " .. career_saveSystem.getCurrentSaveSlot() .. ")###Career Debug", nil, imgui.WindowFlags_MenuBar)
imgui.BeginMenuBar()
if imgui.BeginMenu("File") then
local currentSaveSlot, currentSavePath = career_saveSystem.getCurrentSaveSlot()
imgui.Text((string.sub(currentSavePath, string.len(career_saveSystem.getSaveRootDirectory())+2, -1)))
-- load career
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
local currentSaveSlot, _ = career_saveSystem.getCurrentSaveSlot()
if career_career.isActive() and currentSaveSlot == saveSlot then
if not careerActive then return end
local saveSlot = career_saveSystem.getCurrentSaveSlot()
if saveSlot then
local function sendCurrentSaveSlotName()
guihooks.trigger("currentSaveSlotName", {saveSlot = career_saveSystem.getCurrentSaveSlot()})
end
@/lua/ge/extensions/career/modules/marketplace.lua
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot or not savePath then return end
@/lua/ge/extensions/career/branches.lua
local function onCareerModulesActivated(alreadyInLevel)
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/branches/leagues.lua
local function onCareerModulesActivated()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
@/lua/ge/extensions/flowgraph/modules/missionReplayModule.lua
local currentSaveSlot, _ = career_saveSystem.getCurrentSaveSlot()
local dir, fn = path.split(self.currentReplayFile)
@/lua/ge/extensions/career/modules/inventory.lua
-- load from saveslot
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot or not savePath then return end
elseif not vehicle.defaultThumbnail then
local _, oldSavePath = career_saveSystem.getCurrentSaveSlot()
FS:copyFile(oldSavePath .. "/career/vehicles/" .. id .. ".png", thumbnailFilename)
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
local data = jsonReadFile(savePath .. "/info.json")
if not vehicle then return end
local _, savePath = career_saveSystem.getCurrentSaveSlot()
local thumbnailPath = savePath .. "/career/vehicles/" .. inventoryId .. ".png"
@/lua/ge/extensions/career/modules/unlockFlags.lua
local function loadSaveData()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/logbook.lua
local function loadDataFromFile()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/speedTraps.lua
if not career_career.isActive() then return false end
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
@/lua/ge/extensions/career/modules/spawnPoints.lua
local function loadDataFromFile()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end
@/lua/ge/extensions/career/modules/playbookWriter.lua
local function loadDataFromFile()
local saveSlot, savePath = career_saveSystem.getCurrentSaveSlot()
if not saveSlot then return end