Skip to content

Commit 23f6259

Browse files
committed
add warning if gd doc dir cant be found in ts ver
1 parent 28c8d3a commit 23f6259

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/RootViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ - (void)viewDidLoad {
231231
[Utils showNotice:self title:@"In LiveContainer, please enable \"Launch with JIT\", \"Don't Inject TweakLoader\" & \"Don't Load TweakLoader\", otherwise Geode will "
232232
@"not launch properly. JIT-Less mode may NOT work on LiveContainer."];
233233
});
234+
} else if (![Utils isSandboxed]) {
235+
if (![Utils getGDDocPath]) {
236+
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.75 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
237+
[Utils showNotice:self
238+
title:@"Couldn't find Geometry Dash's documents directory! Please ensure that Geometry Dash is installed, otherwise Geode cannot not install."];
239+
});
240+
}
234241
}
235242

236243
// making sure it has right attributes

0 commit comments

Comments
 (0)