Start shoving all this config to something platform-independent.

This commit is contained in:
Alcaro
2016-05-01 12:26:20 +02:00
parent 711da4f292
commit 289971ad78
5 changed files with 77 additions and 73 deletions

View File

@@ -176,6 +176,42 @@ enum patchtype IdentifyPatch(file* patch)
return ty_null;
}
config::config(struct mem contents)
{
}
config::config(LPCWSTR filename)
{
}
void config::setbin(const char * name, struct mem value)
{
}
struct mem config::getbin(const char * name)
{
}
struct mem config::flatten()
{
}
config::~config()
{
if (this->filename) filewrite::write(this->filename, this->contents);
free(this->filename);
free(this->contents.ptr);
}
enum {
ch_crc32,
ch_last
@@ -349,6 +385,10 @@ void DeleteRomFromList(LPCWSTR path)
}
}
static struct errorinfo error(errorlevel level, const char * text)
{
struct errorinfo errinf = { level, text };