mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-08-28 21:25:54 +00:00
More cleanup
This commit is contained in:
parent
54764b6deb
commit
fe06d02baf
2 changed files with 3 additions and 5 deletions
|
@ -102,10 +102,6 @@ namespace KernelMemoryTypes {
|
|||
};
|
||||
} // namespace KernelMemoryTypes
|
||||
|
||||
struct FcramBlock;
|
||||
class KFcram;
|
||||
enum class FcramRegion;
|
||||
|
||||
class Memory {
|
||||
// Used internally by changeMemoryState
|
||||
struct Operation {
|
||||
|
|
|
@ -82,7 +82,9 @@ void Kernel::getResourceLimitCurrentValues() {
|
|||
s32 Kernel::getCurrentResourceValue(const KernelObject* limit, u32 resourceName) {
|
||||
const auto data = static_cast<ResourceLimits*>(limit->data);
|
||||
switch (resourceName) {
|
||||
case ResourceType::Commit: return fcramManager.getUsedCount(FcramRegion::App) << 12; // TODO: needs to use the current amount of memory allocated by the process
|
||||
// TODO: needs to use the current amount of memory allocated by the process
|
||||
case ResourceType::Commit: return fcramManager.getUsedCount(FcramRegion::App) * Memory::pageSize;
|
||||
|
||||
case ResourceType::Thread: return threadIndices.size();
|
||||
default: Helpers::panic("Attempted to get current value of unknown kernel resource: %d\n", resourceName);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue