diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-12 17:36:31 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-12 18:07:32 +0200 |
commit | 1abed2f4c42c7a389cb0e019f183d3ec94971af1 (patch) | |
tree | c8459ae8d497e7a148365f93e971b817a0adf0f6 /src/core/hle/kernel/process.h | |
parent | Merge pull request #1474 from ogniK5377/hwopus-decodeinterleavedwithperformance (diff) | |
download | yuzu-1abed2f4c42c7a389cb0e019f183d3ec94971af1.tar yuzu-1abed2f4c42c7a389cb0e019f183d3ec94971af1.tar.gz yuzu-1abed2f4c42c7a389cb0e019f183d3ec94971af1.tar.bz2 yuzu-1abed2f4c42c7a389cb0e019f183d3ec94971af1.tar.lz yuzu-1abed2f4c42c7a389cb0e019f183d3ec94971af1.tar.xz yuzu-1abed2f4c42c7a389cb0e019f183d3ec94971af1.tar.zst yuzu-1abed2f4c42c7a389cb0e019f183d3ec94971af1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/process.h | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 590e0c73d..73ec01e11 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -61,26 +61,15 @@ enum class ProcessStatus { Created, Running, Exited }; class ResourceLimit; -struct CodeSet final : public Object { +struct CodeSet final { struct Segment { std::size_t offset = 0; VAddr addr = 0; u32 size = 0; }; - static SharedPtr<CodeSet> Create(KernelCore& kernel, std::string name); - - std::string GetTypeName() const override { - return "CodeSet"; - } - std::string GetName() const override { - return name; - } - - static const HandleType HANDLE_TYPE = HandleType::CodeSet; - HandleType GetHandleType() const override { - return HANDLE_TYPE; - } + explicit CodeSet(); + ~CodeSet(); Segment& CodeSegment() { return segments[0]; @@ -109,14 +98,7 @@ struct CodeSet final : public Object { std::shared_ptr<std::vector<u8>> memory; std::array<Segment, 3> segments; - VAddr entrypoint; - - /// Name of the process - std::string name; - -private: - explicit CodeSet(KernelCore& kernel); - ~CodeSet() override; + VAddr entrypoint = 0; }; class Process final : public Object { @@ -219,7 +201,7 @@ public: */ void PrepareForTermination(); - void LoadModule(SharedPtr<CodeSet> module_, VAddr base_addr); + void LoadModule(CodeSet module_, VAddr base_addr); /////////////////////////////////////////////////////////////////////////////////////////////// // Memory Management |