Commit fe503ffc authored by Pierre's avatar Pierre

Add a way to delete the library on each launch.

parent 5bed2d3a
......@@ -20,6 +20,8 @@
#import "MLCrashPreventer.h"
#define DEBUG 1
// To debug
#define DELETE_LIBRARY_ON_EACH_LAUNCH 0
#ifdef TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
......@@ -83,7 +85,9 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
int directory = NSLibraryDirectory;
NSArray *paths = NSSearchPathForDirectoriesInDomains(directory, NSUserDomainMask, YES);
NSString *directoryPath = [paths objectAtIndex:0];
#if DELETE_LIBRARY_ON_EACH_LAUNCH
[[NSFileManager defaultManager] removeItemAtPath:directoryPath error:nil];
#endif
return directoryPath;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment