mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-03 17:23:18 +00:00
kernel: Implement some functions
This commit is contained in:
parent
7bdaeafdfd
commit
2506a285f4
9 changed files with 69 additions and 12 deletions
|
@ -137,10 +137,12 @@ struct DynamicModuleInfo {
|
|||
};
|
||||
|
||||
using ModuleFunc = int (*)(size_t, const void*);
|
||||
class MemoryManager;
|
||||
|
||||
class Module {
|
||||
public:
|
||||
explicit Module(const std::filesystem::path& file, u32& max_tls_index);
|
||||
explicit Module(Core::MemoryManager* memory, const std::filesystem::path& file,
|
||||
u32& max_tls_index);
|
||||
~Module();
|
||||
|
||||
VAddr GetBaseAddress() const noexcept {
|
||||
|
@ -220,6 +222,7 @@ public:
|
|||
const LibraryInfo* FindLibrary(std::string_view id);
|
||||
|
||||
public:
|
||||
Core::MemoryManager* memory;
|
||||
std::filesystem::path file;
|
||||
std::string name;
|
||||
Loader::Elf elf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue