forked from eden-emu/eden
hle: kernel: Migrate KProcess to KAutoObject.
This commit is contained in:
parent
8b224f05c9
commit
7a6bfbde24
14 changed files with 80 additions and 58 deletions
|
@ -98,7 +98,7 @@ public:
|
|||
* Looks up a handle.
|
||||
* @return Pointer to the looked-up object, or `nullptr` if the handle is not valid.
|
||||
*/
|
||||
std::shared_ptr<Object> GetGeneric(Handle handle) const;
|
||||
Object* GetGeneric(Handle handle) const;
|
||||
|
||||
/**
|
||||
* Looks up a handle while verifying its type.
|
||||
|
@ -106,7 +106,7 @@ public:
|
|||
* type differs from the requested one.
|
||||
*/
|
||||
template <class T>
|
||||
std::shared_ptr<T> Get(Handle handle) const {
|
||||
T* Get(Handle handle) const {
|
||||
return DynamicObjectCast<T>(GetGeneric(handle));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue