mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 15:39:57 +00:00
handle_table: Remove ConvertSessionToDomain.
This commit is contained in:
parent
44eb840232
commit
932fa94af7
2 changed files with 0 additions and 17 deletions
|
@ -5,12 +5,10 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
#include "core/hle/kernel/client_session.h"
|
|
||||||
#include "core/hle/kernel/errors.h"
|
#include "core/hle/kernel/errors.h"
|
||||||
#include "core/hle/kernel/handle_table.h"
|
#include "core/hle/kernel/handle_table.h"
|
||||||
#include "core/hle/kernel/kernel.h"
|
#include "core/hle/kernel/kernel.h"
|
||||||
#include "core/hle/kernel/process.h"
|
#include "core/hle/kernel/process.h"
|
||||||
#include "core/hle/kernel/session.h"
|
|
||||||
#include "core/hle/kernel/thread.h"
|
#include "core/hle/kernel/thread.h"
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
@ -55,14 +53,6 @@ ResultVal<Handle> HandleTable::Duplicate(Handle handle) {
|
||||||
return Create(std::move(object));
|
return Create(std::move(object));
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleTable::ConvertSessionToDomain(const Session& session, SharedPtr<Object> domain) {
|
|
||||||
for (auto& object : objects) {
|
|
||||||
if (DynamicObjectCast<ClientSession>(object) == session.client) {
|
|
||||||
object = domain;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ResultCode HandleTable::Close(Handle handle) {
|
ResultCode HandleTable::Close(Handle handle) {
|
||||||
if (!IsValid(handle))
|
if (!IsValid(handle))
|
||||||
return ERR_INVALID_HANDLE;
|
return ERR_INVALID_HANDLE;
|
||||||
|
|
|
@ -17,8 +17,6 @@ enum KernelHandle : Handle {
|
||||||
CurrentProcess = 0xFFFF8001,
|
CurrentProcess = 0xFFFF8001,
|
||||||
};
|
};
|
||||||
|
|
||||||
class Session;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class allows the creation of Handles, which are references to objects that can be tested
|
* This class allows the creation of Handles, which are references to objects that can be tested
|
||||||
* for validity and looked up. Here they are used to pass references to kernel objects to/from the
|
* for validity and looked up. Here they are used to pass references to kernel objects to/from the
|
||||||
|
@ -61,11 +59,6 @@ public:
|
||||||
*/
|
*/
|
||||||
ResultVal<Handle> Duplicate(Handle handle);
|
ResultVal<Handle> Duplicate(Handle handle);
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert all handles of the specified Session to the specified Domain.
|
|
||||||
*/
|
|
||||||
void ConvertSessionToDomain(const Session& session, SharedPtr<Object> domain);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes a handle, removing it from the table and decreasing the object's ref-count.
|
* Closes a handle, removing it from the table and decreasing the object's ref-count.
|
||||||
* @return `RESULT_SUCCESS` or one of the following errors:
|
* @return `RESULT_SUCCESS` or one of the following errors:
|
||||||
|
|
Loading…
Reference in a new issue