24 auto FixedProfiles()
const
28 void UnloadAllLocalProfiles();
29 void RefreshLocalProfilesFromDisk();
31 auto GetLocalProfile(
const std::string& sProfileID)
const ->
const Profile*;
32 auto GetLocalProfile(
const std::string& sProfileID) ->
Profile*
38 auto GetLocalProfileFromIndex(
int iIndex) ->
Profile*;
39 auto GetLocalProfileIDFromIndex(
int iIndex) -> std::string;
41 auto CreateLocalProfile(
const std::string& sName,
42 std::string& sProfileIDOut) -> bool;
43 void AddLocalProfileByID(
45 const std::string& sProfileID);
46 auto RenameLocalProfile(
const std::string& sProfileID,
47 const std::string& sNewName) -> bool;
48 void GetLocalProfileIDs(std::vector<std::string>& vsProfileIDsOut)
const;
49 void GetLocalProfileDisplayNames(
50 std::vector<std::string>& vsProfileDisplayNamesOut)
const;
51 auto GetLocalProfileIndexFromID(
const std::string& sProfileID)
const -> int;
52 auto GetNumLocalProfiles()
const -> int;
54 auto GetStatsPrefix() -> std::string {
return m_stats_prefix; }
55 void SetStatsPrefix(std::string
const& prefix);
57 auto LoadFirstAvailableProfile(PlayerNumber pn,
bool bLoadEdits =
true)
59 auto LoadLocalProfileFromMachine(PlayerNumber pn) -> bool;
60 auto SaveProfile(PlayerNumber pn)
const -> bool;
61 auto SaveLocalProfile(
const std::string& sProfileID) -> bool;
62 void UnloadProfile(PlayerNumber pn);
64 void MergeLocalProfiles(std::string
const& from_id,
65 std::string
const& to_id);
66 void MoveProfilePriority(
int index,
bool up);
69 void IncrementToastiesCount(PlayerNumber pn);
70 void AddStepTotals(PlayerNumber pn,
80 auto GetProfile(PlayerNumber pn)
const ->
const Profile*;
81 auto GetProfile(PlayerNumber pn) ->
Profile*
86 auto GetProfile(ProfileSlot slot)
const ->
const Profile*;
87 auto GetProfile(ProfileSlot slot) ->
Profile*
93 auto GetProfileDir(ProfileSlot slot)
const ->
const std::string&;
95 auto GetPlayerName(PlayerNumber pn)
const -> std::string;
96 auto LastLoadWasTamperedOrCorrupt(PlayerNumber pn)
const -> bool;
97 auto LastLoadWasFromLastGood(PlayerNumber pn)
const -> bool;
99 void IncrementStepsPlayCount(
const Song* pSong,
103 void PushSelf(lua_State* L);
108 auto LoadProfile(PlayerNumber pn,
const std::string& sProfileDir)
109 -> ProfileLoadResult;
113 std::string m_sProfileDir;
115 std::string m_stats_prefix;
117 bool m_bLastLoadWasTamperedOrCorrupt;
122 bool m_bLastLoadWasFromLastGood;
125 mutable bool m_bNeedToBackUpLastLoad;