diff options
| author | 2021-02-03 12:55:16 +1100 | |
|---|---|---|
| committer | 2021-02-03 12:55:16 +1100 | |
| commit | 2c6e94049362f592bfb578a2b078f6f3067ed0d8 (patch) | |
| tree | 513aa888bfe87637e8736165b35b852de079b02f /src/core/hle/kernel/svc.cpp | |
| parent | Compile error (diff) | |
| download | yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.gz yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.tar.xz yuzu-2c6e94049362f592bfb578a2b078f6f3067ed0d8.zip | |
Simplify limitableresource names
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index d89873104..74eb90100 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -312,8 +312,7 @@ static ResultCode ConnectToNamedPort(Core::System& system, Handle* out_handle, | |||
| 312 | return ERR_NOT_FOUND; | 312 | return ERR_NOT_FOUND; |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | ASSERT(kernel.CurrentProcess()->GetResourceLimit()->Reserve(LimitableResource::SessionCountMax, | 315 | ASSERT(kernel.CurrentProcess()->GetResourceLimit()->Reserve(LimitableResource::Sessions, 1)); |
| 316 | 1)); | ||
| 317 | 316 | ||
| 318 | auto client_port = it->second; | 317 | auto client_port = it->second; |
| 319 | 318 | ||
| @@ -1451,9 +1450,8 @@ static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr e | |||
| 1451 | Svc::ResultInvalidPriority); | 1450 | Svc::ResultInvalidPriority); |
| 1452 | R_UNLESS(process.CheckThreadPriority(priority), Svc::ResultInvalidPriority); | 1451 | R_UNLESS(process.CheckThreadPriority(priority), Svc::ResultInvalidPriority); |
| 1453 | 1452 | ||
| 1454 | ASSERT(process.GetResourceLimit()->Reserve(LimitableResource::ThreadCountMax, 1, | 1453 | ASSERT(process.GetResourceLimit()->Reserve( |
| 1455 | system.CoreTiming().GetGlobalTimeNs().count() + | 1454 | LimitableResource::Threads, 1, system.CoreTiming().GetGlobalTimeNs().count() + 100000000)); |
| 1456 | 100000000)); | ||
| 1457 | 1455 | ||
| 1458 | std::shared_ptr<KThread> thread; | 1456 | std::shared_ptr<KThread> thread; |
| 1459 | { | 1457 | { |