mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-21 20:53:56 +00:00
Prepare filesystem support
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
#pragma once
|
||||
#include "mapped_module.hpp"
|
||||
#include <emulator.hpp>
|
||||
|
||||
#include "mapped_module.hpp"
|
||||
#include "../file_system.hpp"
|
||||
|
||||
class logger;
|
||||
|
||||
class module_manager
|
||||
{
|
||||
public:
|
||||
using module_map = std::map<uint64_t, mapped_module>;
|
||||
module_manager(emulator& emu);
|
||||
module_manager(emulator& emu, file_system& file_sys);
|
||||
|
||||
mapped_module* map_module(const std::filesystem::path& file, logger& logger);
|
||||
mapped_module* map_module(const std::filesystem::path& file, const logger& logger);
|
||||
mapped_module* map_local_module(const std::filesystem::path& file, const logger& logger);
|
||||
|
||||
mapped_module* find_by_address(const uint64_t address)
|
||||
{
|
||||
@@ -45,6 +48,7 @@ class module_manager
|
||||
|
||||
private:
|
||||
emulator* emu_{};
|
||||
file_system* file_sys_{};
|
||||
|
||||
module_map modules_{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user