mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
id_manager: embedded RTTI
This commit is contained in:
parent
e585939ac2
commit
e6bd91ada0
9 changed files with 93 additions and 77 deletions
|
@ -558,9 +558,9 @@ s32 cellAdecOpen(vm::ptr<CellAdecType> type, vm::ptr<CellAdecResource> res, vm::
|
|||
return CELL_ADEC_ERROR_ARG;
|
||||
}
|
||||
|
||||
auto&& adec = std::make_shared<AudioDecoder>(type->audioCodecType, res->startAddr, res->totalMemSize, cb->cbFunc, cb->cbArg);
|
||||
auto&& adec = idm::make_ptr<ppu_thread, AudioDecoder>(type->audioCodecType, res->startAddr, res->totalMemSize, cb->cbFunc, cb->cbArg);
|
||||
|
||||
*handle = idm::import_existing<ppu_thread>(adec);
|
||||
*handle = adec->id;
|
||||
|
||||
adec->run();
|
||||
|
||||
|
@ -576,9 +576,9 @@ s32 cellAdecOpenEx(vm::ptr<CellAdecType> type, vm::ptr<CellAdecResourceEx> res,
|
|||
return CELL_ADEC_ERROR_ARG;
|
||||
}
|
||||
|
||||
auto&& adec = std::make_shared<AudioDecoder>(type->audioCodecType, res->startAddr, res->totalMemSize, cb->cbFunc, cb->cbArg);
|
||||
auto&& adec = idm::make_ptr<ppu_thread, AudioDecoder>(type->audioCodecType, res->startAddr, res->totalMemSize, cb->cbFunc, cb->cbArg);
|
||||
|
||||
*handle = idm::import_existing<ppu_thread>(adec);
|
||||
*handle = adec->id;
|
||||
|
||||
adec->run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue