diff options
-rw-r--r-- | MobileCydia.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 2212e09..2c94da8 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10633,7 +10633,8 @@ int main(int argc, char *argv[]) { setuid(0); setgid(0); - system("mkdir -p /var/root/Library/Keyboard; cp -af /var/mobile/Library/Keyboard/UserDictionary.sqlite /var/root/Library/Keyboard/"); + if (access("/var/mobile/Library/Keyboard/UserDictionary.sqlite", F_OK) == 0) + system("mkdir -p /var/root/Library/Keyboard; cp -af /var/mobile/Library/Keyboard/UserDictionary.sqlite /var/root/Library/Keyboard/"); /*Method alloc = class_getClassMethod([NSObject class], @selector(alloc)); alloc_ = alloc->method_imp; |