mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-18 01:29:49 +00:00
Adjust memory loaders, to allow easier usage (default arguments)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
9124f10008
commit
9524cf4c6b
@ -8,8 +8,8 @@
|
|||||||
namespace EightBit {
|
namespace EightBit {
|
||||||
class Memory {
|
class Memory {
|
||||||
public:
|
public:
|
||||||
static int load(std::ifstream& file, std::vector<uint8_t>& output, int writeOffset, int readOffset, int limit, int maximumSize);
|
static int load(std::ifstream& file, std::vector<uint8_t>& output, int writeOffset = 0, int readOffset = 0, int limit = -1, int maximumSize = -1);
|
||||||
static int load(const std::string& path, std::vector<uint8_t>& output, int writeOffset, int readOffset, int limit, int maximumSize);
|
static int load(const std::string& path, std::vector<uint8_t>& output, int writeOffset = 0, int readOffset = 0, int limit = -1, int maximumSize = -1);
|
||||||
|
|
||||||
Memory(size_t size = 0)
|
Memory(size_t size = 0)
|
||||||
: m_bytes(size) {
|
: m_bytes(size) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user