Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Halo-Michael committed Jun 30, 2020
1 parent e5a21ae commit cc5d160
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export TARGET = iphone:clang:13.0:10.3
export ARCHS = arm64 arm64e
export VERSION = 0.9.10
export VERSION = 0.9.11
export DEBUG = no
CC = xcrun -sdk ${THEOS}/sdks/iPhoneOS13.0.sdk clang -arch arm64 -arch arm64e -miphoneos-version-min=10.3
LDID = ldid
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: com.michael.TimeMachine
Version: 0.9.10
Version: 0.9.11
Section: Tweaks
Name: TimeMachine on iOS
Author: halo_michael <yc992147156@me.com>
Expand Down
4 changes: 2 additions & 2 deletions setTimeMachine/setTimeMachine.m
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ int main(int argc, char **argv) {
}

NSString *filePath = [[NSString alloc] initWithUTF8String:filesystem];
while ([filePath characterAtIndex:([filePath length] - 1)] == '/' && [filePath length] != 1) {
filePath = [filePath substringToIndex:([filePath length] - 1)];
while ([filePath characterAtIndex:([[NSNumber numberWithUnsignedInteger:[filePath length]] intValue] - 1)] == '/' && [[NSNumber numberWithUnsignedInteger:[filePath length]] intValue] != 1) {
filePath = [filePath substringToIndex:([[NSNumber numberWithUnsignedInteger:[filePath length]] intValue] - 1)];
}
NSError *error = nil;
NSMutableDictionary *fileInfo = [NSMutableDictionary dictionaryWithDictionary:[[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:&error]];
Expand Down

0 comments on commit cc5d160

Please sign in to comment.