const char *filename = ConfigGetSharedDataFilepath("gles2n64rom.conf");
FILE *f = fopen(filename,"r");
if (!f)
{
LOG(LOG_MINIMAL, "Could not find %s Rom settings file, using global.\n", filename);
const char *filename = ConfigGetSharedDataFilepath("gles2n64rom.conf");
FILE *f = fopen(filename,"r");
if (!f)
{
LOG(LOG_MINIMAL, "Could not find %s Rom settings file, using global.\n", filename);
return;
}
else
{
LOG(LOG_MINIMAL, "[gles2N64]: Searching %s Database for \"%s\" ROM\n", filename, config.romName);
return;
}
else
{
LOG(LOG_MINIMAL, "[gles2N64]: Searching %s Database for \"%s\" ROM\n", filename, config.romName);
*val++ = '\0';
Config_SetOption(line,val);
LOG(LOG_MINIMAL, "%s = %s", line, val);
*val++ = '\0';
Config_SetOption(line,val);
LOG(LOG_MINIMAL, "%s = %s", line, val);
{
LOG(LOG_MINIMAL, "[gles2N64]: Couldn't open config file '%s' for reading: %s\n", filename, strerror( errno ) );
LOG(LOG_MINIMAL, "[gles2N64]: Attempting to write new Config \n");
{
LOG(LOG_MINIMAL, "[gles2N64]: Couldn't open config file '%s' for reading: %s\n", filename, strerror( errno ) );
LOG(LOG_MINIMAL, "[gles2N64]: Attempting to write new Config \n");
Config_WriteConfig(filename);
}
else
{
LOG(LOG_MINIMAL, "[gles2n64]: Loading Config from %s \n", filename);
Config_WriteConfig(filename);
}
else
{
LOG(LOG_MINIMAL, "[gles2n64]: Loading Config from %s \n", filename);
if (config.version < CONFIG_VERSION)
{
LOG(LOG_WARNING, "[gles2N64]: Wrong config version, rewriting config with defaults\n");
if (config.version < CONFIG_VERSION)
{
LOG(LOG_WARNING, "[gles2N64]: Wrong config version, rewriting config with defaults\n");