[Kernel] Added support for writing/reading GPD files
This breaks settings in games that are using them and savefiles in games that use settings to store progress
This commit is contained in:
committed by
Radosław Gliński
parent
ccf7adf015
commit
1110cdd372
50
src/xenia/kernel/xam/xdbf/gpd_info_profile.h
Normal file
50
src/xenia/kernel/xam/xdbf/gpd_info_profile.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2025 Xenia Canary. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_KERNEL_XAM_XDBF_GPD_INFO_PROFILE_H_
|
||||
#define XENIA_KERNEL_XAM_XDBF_GPD_INFO_PROFILE_H_
|
||||
|
||||
#include "xenia/kernel/xam/xdbf/gpd_info.h"
|
||||
#include "xenia/kernel/xam/xdbf/spa_info.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "xenia/xbox.h"
|
||||
|
||||
namespace xe {
|
||||
namespace kernel {
|
||||
namespace xam {
|
||||
|
||||
class GpdInfoProfile : public GpdInfo {
|
||||
public:
|
||||
GpdInfoProfile() : GpdInfo(0xFFFE07D1) {};
|
||||
GpdInfoProfile(const std::vector<uint8_t> buffer)
|
||||
: GpdInfo(0xFFFE07D1, buffer) {};
|
||||
|
||||
~GpdInfoProfile() {};
|
||||
|
||||
void AddNewTitle(const SpaInfo* title_data);
|
||||
void UpdateTitleInfo(const uint32_t title_id,
|
||||
X_XDBF_GPD_TITLE_PLAYED* title_data);
|
||||
|
||||
const std::vector<const X_XDBF_GPD_TITLE_PLAYED*> GetTitlesInfo() const;
|
||||
X_XDBF_GPD_TITLE_PLAYED* GetTitleInfo(const uint32_t title_id);
|
||||
|
||||
std::u16string GetTitleName(const uint32_t title_id) const;
|
||||
|
||||
private:
|
||||
X_XDBF_GPD_TITLE_PLAYED FillTitlePlayedData(const SpaInfo* title_data) const;
|
||||
};
|
||||
|
||||
} // namespace xam
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_KERNEL_XAM_XDBF_GPD_INFO_PROFILE_H_
|
||||
Reference in New Issue
Block a user