mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-06 18:50:16 +00:00
28 lines
499 B
C++
28 lines
499 B
C++
#ifndef __FLASH_FILER_H__
|
|
#define __FLASH_FILER_H__
|
|
|
|
// split into sd_filer and fs_filer
|
|
// implement write to new file (like checkpoint)
|
|
class flash_filer: public filer {
|
|
public:
|
|
flash_filer(const char *programs): _programs(programs) {}
|
|
|
|
const char *advance();
|
|
const char *rewind();
|
|
|
|
const char *checkpoint();
|
|
void restore(const char *);
|
|
|
|
bool start();
|
|
void stop();
|
|
bool seek(uint32_t pos);
|
|
|
|
bool more();
|
|
uint8_t read();
|
|
void write(uint8_t);
|
|
|
|
private:
|
|
const char *_programs;
|
|
};
|
|
#endif
|