diff options
author | Lioncash <mathew1800@gmail.com> | 2014-12-04 01:48:34 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2014-12-04 01:48:34 +0100 |
commit | 9b68d5e07416882526b1d4d444a53f684274ca70 (patch) | |
tree | 7d196e04ded2090fa4ba234b54e45875a2402470 /src/core | |
parent | Merge pull request #237 from vaguilar/fix-viewport (diff) | |
download | yuzu-9b68d5e07416882526b1d4d444a53f684274ca70.tar yuzu-9b68d5e07416882526b1d4d444a53f684274ca70.tar.gz yuzu-9b68d5e07416882526b1d4d444a53f684274ca70.tar.bz2 yuzu-9b68d5e07416882526b1d4d444a53f684274ca70.tar.lz yuzu-9b68d5e07416882526b1d4d444a53f684274ca70.tar.xz yuzu-9b68d5e07416882526b1d4d444a53f684274ca70.tar.zst yuzu-9b68d5e07416882526b1d4d444a53f684274ca70.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 | ||||
-rw-r--r-- | src/core/hle/kernel/kernel.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 018000abd..2954f9913 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -37,7 +37,7 @@ Handle ObjectPool::Create(Object* obj, int range_bottom, int range_top) { return 0; } -bool ObjectPool::IsValid(Handle handle) { +bool ObjectPool::IsValid(Handle handle) const { int index = handle - HANDLE_OFFSET; if (index < 0) return false; @@ -75,7 +75,7 @@ void ObjectPool::List() { } } -int ObjectPool::GetCount() { +int ObjectPool::GetCount() const { int count = 0; for (int i = 0; i < MAX_COUNT; i++) { if (occupied[i]) diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 8d3937ce8..00a2228bf 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -86,7 +86,7 @@ public: } } - bool IsValid(Handle handle); + bool IsValid(Handle handle) const; template <class T> T* Get(Handle handle) { @@ -142,7 +142,7 @@ public: Object* &operator [](Handle handle); void List(); void Clear(); - int GetCount(); + int GetCount() const; private: |