Etterna 0.74.4
Loading...
Searching...
No Matches
XMLProfile.h
1#ifndef Profile_XML
2#define Profile_XML
3
4#include "Etterna/Globals/global.h"
5#include "GameConstantsAndTypes.h"
6#include "Etterna/FileTypes/XmlFile.h"
7
8class XNode;
9
11{
12 public:
13 static void MoveBackupToDir(std::string sFromDir, std::string sToDir);
14
15 // Etterna profile
16 auto LoadEttFromDir(std::string dir) -> ProfileLoadResult;
17 auto SaveEttXmlToDir(std::string sDir, const Profile* profile) const
18 -> bool;
19 void SetLoadingProfile(Profile* p) { loadingProfile = p; }
20
21 private:
22 Profile* loadingProfile{};
23
24 auto LoadEttXmlFromNode(const XNode* pNode) -> ProfileLoadResult;
25
26 void LoadEttGeneralDataFromNode(const XNode* pNode);
27 void LoadEttScoresFromNode(const XNode* pNode);
28 void LoadFavoritesFromNode(const XNode* pNode);
29 void LoadPermaMirrorFromNode(const XNode* pNode);
30 void LoadScoreGoalsFromNode(const XNode* pNode);
31 void LoadPlaylistsFromNode(const XNode* pNode);
32
33 void LoadScreenshotDataFromNode(const XNode* pNode);
34
35 auto SaveEttGeneralDataCreateNode(const Profile* profile) const -> XNode*;
36 auto SaveEttScoresCreateNode(const Profile* profile) const -> XNode*;
37 auto SaveEttXmlCreateNode(const Profile* profile) const -> XNode*;
38
39 auto SaveFavoritesCreateNode(const Profile* profile) const -> XNode*;
40 auto SavePermaMirrorCreateNode(const Profile* profile) const -> XNode*;
41 auto SaveScoreGoalsCreateNode(const Profile* profile) const -> XNode*;
42 auto SavePlaylistsCreateNode(const Profile* profile) const -> XNode*;
43 auto SaveScreenshotDataCreateNode(const Profile* profile) const -> XNode*;
44
45 std::string profiledir;
46};
47
48#endif
Player data that persists between sessions.
Definition Profile.h:130
Definition XMLProfile.h:11
Definition XmlFile.h:95