#ifndef _CONFIG_H_
#define _CONFIG_H_
#include "reader_master.h"
struct st_config{
	//override config
	long mapper;
	int mirror, backupram;
	//target filename
	const char *ramimage, *romimage;
	const char *script;
	//device driver function pointer struct
	const struct reader_driver *reader;
	const struct flash_driver *cpu_flash_driver, *ppu_flash_driver;
	long write_wait;
	//data mode
	int mode, syntaxtest;
};
enum{
	CONFIG_OVERRIDE_UNDEF = 4649,
	CONFIG_OVERRIDE_TRUE = 1
};

enum{
	MODE_TEST,
	MODE_ROM_DUMP,
	MODE_RAM_READ,
	MODE_RAM_WRITE,
	MODE_ROM_PROGRAM
};

#endif
