mirror of
https://github.com/JaCzekanski/Avocado.git
synced 2024-05-20 12:57:38 -04:00
b51c2b8a64
Load memory cards by drag&drop Better parsing of memory card contents Card formatting
14 lines
434 B
C++
14 lines
434 B
C++
#pragma once
|
|
#include <array>
|
|
#include <string>
|
|
#include <optional>
|
|
#include <vector>
|
|
|
|
namespace memory_card {
|
|
constexpr int MEMCARD_SIZE = 128 * 1024;
|
|
bool isMemoryCardImage(const std::string& path);
|
|
std::optional<std::vector<uint8_t>> load(const std::string& path);
|
|
bool save(const std::array<uint8_t, MEMCARD_SIZE>& data, const std::string& path);
|
|
void format(std::array<uint8_t, MEMCARD_SIZE>& data);
|
|
}; // namespace memory_card
|