/* * Copyright (C) 2022 Riyyi * * SPDX-License-Identifier: MIT */ #pragma once #include #include #include "ruc/singleton.h" class Loader final : public ruc::Singleton { public: Loader(s) {} void loadRom(std::string_view rom_path); void disableBootrom(); void setBootromPath(std::string_view bootrom_path) { m_bootrom_path = bootrom_path; } private: void init(); void update(); void destroy(); void loadCartridgeHeader(); void loadCartridgeBanks(); std::string_view m_bootrom_path; std::string m_rom_data; };