mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
idm::last_id cleanup
This commit is contained in:
parent
e3e4decabf
commit
fe26db4d36
5 changed files with 16 additions and 39 deletions
|
@ -22,8 +22,6 @@ struct trophy_context_t
|
|||
static const u32 id_step = 1;
|
||||
static const u32 id_count = 1023;
|
||||
|
||||
const u32 id = idm::last_id();
|
||||
|
||||
std::string trp_name;
|
||||
fs::file trp_stream;
|
||||
std::unique_ptr<TROPUSRLoader> tropusr;
|
||||
|
@ -34,8 +32,6 @@ struct trophy_handle_t
|
|||
static const u32 id_base = 1;
|
||||
static const u32 id_step = 1;
|
||||
static const u32 id_count = 1023;
|
||||
|
||||
const u32 id = idm::last_id();
|
||||
};
|
||||
|
||||
// Functions
|
||||
|
@ -125,7 +121,7 @@ s32 sceNpTrophyCreateContext(vm::ptr<u32> context, vm::cptr<SceNpCommunicationId
|
|||
// set trophy context parameters (could be passed to constructor through make_ptr call)
|
||||
ctxt->trp_name = std::move(name);
|
||||
ctxt->trp_stream = std::move(stream);
|
||||
*context = ctxt->id;
|
||||
*context = idm::last_id();
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue