[Kernel] Fix GpdFile missing default constructor & init dash with proper ID

This commit is contained in:
emoose 2018-11-18 04:58:30 +00:00
parent fa2cd63b1f
commit 8f5a82b444
No known key found for this signature in database
GPG Key ID: 3735C67912F5FF97
2 changed files with 2 additions and 1 deletions

View File

@ -350,6 +350,7 @@ class SpaFile : public XdbfFile {
class GpdFile : public XdbfFile {
public:
GpdFile() : title_id_(-1) {}
GpdFile(uint32_t title_id) : title_id_(title_id) {}
bool GetAchievement(uint16_t id, XdbfAchievement* dest);

View File

@ -29,7 +29,7 @@ DEFINE_string(profile_directory, "Content\\Profile\\",
constexpr uint32_t kDashboardID = 0xFFFE07D1;
UserProfile::UserProfile() {
UserProfile::UserProfile() : dash_gpd_(kDashboardID) {
xuid_ = 0xBABEBABEBABEBABE;
name_ = "User";