mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-22 02:17:55 +00:00
Nvflinger: correct duplication.
This commit is contained in:
parent
9623b1dc5a
commit
40a5c7d398
4 changed files with 5 additions and 5 deletions
|
@ -207,14 +207,14 @@ void NvMap::UnpinHandle(Handle::Id handle) {
|
|||
}
|
||||
}
|
||||
|
||||
void NvMap::DuplicateHandle(Handle::Id handle) {
|
||||
void NvMap::DuplicateHandle(Handle::Id handle, bool internal_session) {
|
||||
auto handle_description{GetHandle(handle)};
|
||||
if (!handle_description) {
|
||||
LOG_CRITICAL(Service_NVDRV, "Unregistered handle!");
|
||||
return;
|
||||
}
|
||||
|
||||
auto result = handle_description->Duplicate(false);
|
||||
auto result = handle_description->Duplicate(internal_session);
|
||||
if (result != NvResult::Success) {
|
||||
LOG_CRITICAL(Service_NVDRV, "Could not duplicate handle!");
|
||||
}
|
||||
|
|
|
@ -165,7 +165,7 @@ public:
|
|||
/**
|
||||
* @brief Tries to duplicate a handle
|
||||
*/
|
||||
void DuplicateHandle(Handle::Id handle);
|
||||
void DuplicateHandle(Handle::Id handle, bool internal_session = false);
|
||||
|
||||
/**
|
||||
* @brief Tries to free a handle and remove a single dupe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue