JKSV/include/data/userSaveInfo.hpp
2024-09-11 17:47:57 -04:00

28 lines
876 B
C++

#pragma once
#include <string>
#include <cstdint>
#include <switch.h>
namespace data
{
class userSaveInfo
{
public:
// Inits data
userSaveInfo(uint64_t titleID, const FsSaveDataInfo &saveDataInfo, const PdmPlayStatistics &playStats);
// These do not return references or pointers so they can't be changed
uint64_t getTitleID(void) const;
// Not sure how I feel about returning references, but I don't wanna make copies to get the data from these.
FsSaveDataInfo getSaveDataInfo(void) const;
PdmPlayStatistics getPlayStatistics(void) const;
private:
// Title ID/Application ID
uint64_t m_TitleID;
// Save info
FsSaveDataInfo m_SaveDataInfo;
// Play stats
PdmPlayStatistics m_PlayStats;
};
}