xtRom.h (416B)
1 #pragma once 2 3 #include <utility> 4 5 #include "xtTypes.h" 6 7 #include "wLib/wRom.h" 8 9 namespace xt 10 { 11 class Rom : public wLib::ROM 12 { 13 public: 14 static constexpr uint32_t Size = g_romSize; 15 16 Rom(const std::string& _filename, std::vector<uint8_t> _data) : ROM(_filename, Size, std::move(_data)) 17 { 18 } 19 20 uint32_t getSize() const override 21 { 22 return Size; 23 } 24 25 static Rom invalid() 26 { 27 return {{}, {}}; 28 } 29 }; 30 }