(iOS) Fix issue where new config files would not be generated. (Every version since be3aa0a063 was broken...)

This commit is contained in:
meancoot 2013-03-05 20:04:56 -05:00
parent 735bbdd013
commit 3fd2db88e8
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@
- (id)initWithPath:(NSString*)path
{
_config = config_file_new([path UTF8String]);
_config = _config ? _config : config_file_new(0);
return self;
}

View File

@ -86,7 +86,7 @@ static RASettingData* custom_action(NSString* action)
@implementation RASettingsList
+ (void)refreshConfigFile
{
[[[RASettingsList alloc] init] writeToDisk];
(void)[[RASettingsList alloc] init];
}
- (id)init