refactor(libs): move NpTrophy2 types from global SceTypes to libSceNpTrophy2

This commit is contained in:
boykopovar 2026-09-13 10:30:13 +03:00
parent 7d40561780
commit 42e1bad3d2
3 changed files with 71 additions and 61 deletions

View File

@ -1423,68 +1423,7 @@ struct NpEntitlementAccessAddcontEntitlementInfo {
std::uint32_t download_status;
};
struct NpTrophy2Progress { std::uint32_t value; };
struct NpTrophy2GameDetails {
std::uint32_t num_groups;
std::uint32_t num_trophies;
std::uint32_t num_platinum;
std::uint32_t num_gold;
std::uint32_t num_silver;
std::uint32_t num_bronze;
char title[128];
};
struct NpTrophy2GameData {
std::uint32_t unlocked_trophies;
std::uint32_t unlocked_platinum;
std::uint32_t unlocked_gold;
std::uint32_t unlocked_silver;
std::uint32_t unlocked_bronze;
std::uint32_t progress_percentage;
};
struct NpTrophy2GroupDetails {
std::int32_t group_id;
std::uint32_t num_trophies;
std::uint32_t num_platinum;
std::uint32_t num_gold;
std::uint32_t num_silver;
std::uint32_t num_bronze;
char title[128];
};
struct NpTrophy2GroupData {
std::int32_t group_id;
std::uint32_t unlocked_trophies;
std::uint32_t unlocked_platinum;
std::uint32_t unlocked_gold;
std::uint32_t unlocked_silver;
std::uint32_t unlocked_bronze;
std::uint32_t progress_percentage;
std::uint8_t reserved[4];
};
struct NpTrophy2Details {
std::int32_t trophy_id;
std::int32_t trophy_grade;
std::int32_t group_id;
bool hidden;
bool has_reward;
std::uint8_t reserved2[2];
NpTrophy2Progress target;
char name[128];
char description[1024];
char reward[128];
};
struct NpTrophy2Data {
std::int32_t trophy_id;
bool unlocked;
std::uint8_t reserved[3];
NpTrophy2Progress progress;
std::uint64_t timestamp_tick;
};
struct NpUniversalDataSystemInitParam {
std::size_t size;

View File

@ -4,6 +4,7 @@
#include <cstddef>
#include <cstdint>
#include "NpTrophy2Types.hpp"
#include "SceTypes.hpp"
#endif

View File

@ -0,0 +1,70 @@
#ifndef CORE_LIBS_SCE_NP_TROPHY2_TYPES_HPP
#define CORE_LIBS_SCE_NP_TROPHY2_TYPES_HPP
#include <cstddef>
#include <cstdint>
struct NpTrophy2Progress { std::uint32_t value; };
struct NpTrophy2GameDetails {
std::uint32_t num_groups;
std::uint32_t num_trophies;
std::uint32_t num_platinum;
std::uint32_t num_gold;
std::uint32_t num_silver;
std::uint32_t num_bronze;
char title[128];
};
struct NpTrophy2GameData {
std::uint32_t unlocked_trophies;
std::uint32_t unlocked_platinum;
std::uint32_t unlocked_gold;
std::uint32_t unlocked_silver;
std::uint32_t unlocked_bronze;
std::uint32_t progress_percentage;
};
struct NpTrophy2GroupDetails {
std::int32_t group_id;
std::uint32_t num_trophies;
std::uint32_t num_platinum;
std::uint32_t num_gold;
std::uint32_t num_silver;
std::uint32_t num_bronze;
char title[128];
};
struct NpTrophy2GroupData {
std::int32_t group_id;
std::uint32_t unlocked_trophies;
std::uint32_t unlocked_platinum;
std::uint32_t unlocked_gold;
std::uint32_t unlocked_silver;
std::uint32_t unlocked_bronze;
std::uint32_t progress_percentage;
std::uint8_t reserved[4];
};
struct NpTrophy2Details {
std::int32_t trophy_id;
std::int32_t trophy_grade;
std::int32_t group_id;
bool hidden;
bool has_reward;
std::uint8_t reserved2[2];
NpTrophy2Progress target;
char name[128];
char description[1024];
char reward[128];
};
struct NpTrophy2Data {
std::int32_t trophy_id;
bool unlocked;
std::uint8_t reserved[3];
NpTrophy2Progress progress;
std::uint64_t timestamp_tick;
};
#endif