Add GSP::GPU::AcquireRight

This commit is contained in:
wheremyfoodat 2022-09-18 17:30:26 +03:00
parent a56b67f3ba
commit 68698ae7a7
6 changed files with 49 additions and 8 deletions

View file

@ -74,7 +74,8 @@ class Kernel {
void outputDebugString();
public:
Kernel(std::array<u32, 16>& regs, Memory& mem) : regs(regs), mem(mem), handleCounter(0), serviceManager(regs, mem) {
Kernel(std::array<u32, 16>& regs, Memory& mem)
: regs(regs), mem(mem), handleCounter(0), serviceManager(regs, mem, currentProcess) {
objects.reserve(512); // Make room for a few objects to avoid further memory allocs later
portHandles.reserve(32);
}