7 changed files with 38 additions and 31 deletions
-
4src/core/CMakeLists.txt
-
4src/core/hle/kernel/k_page_bitmap.h
-
13src/core/hle/kernel/k_system_control.cpp
-
19src/core/hle/kernel/k_system_control.h
-
11src/core/hle/kernel/memory/page_table.cpp
-
14src/core/hle/kernel/memory/system_control.h
-
4src/core/hle/service/ldr/ldr.cpp
@ -0,0 +1,19 @@ |
|||
// Copyright 2021 yuzu Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "common/common_types.h" |
|||
|
|||
namespace Kernel { |
|||
|
|||
class KSystemControl { |
|||
public: |
|||
KSystemControl() = default; |
|||
|
|||
static u64 GenerateRandomRange(u64 min, u64 max); |
|||
static u64 GenerateRandomU64(); |
|||
}; |
|||
|
|||
} // namespace Kernel |
|||
@ -1,14 +0,0 @@ |
|||
// Copyright 2020 yuzu Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "common/common_types.h" |
|||
|
|||
namespace Kernel::Memory::SystemControl { |
|||
|
|||
u64 GenerateRandomRange(u64 min, u64 max); |
|||
u64 GenerateRandomU64(); |
|||
|
|||
} // namespace Kernel::Memory::SystemControl |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue