mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
it's okay. you can escape now
This commit is contained in:
parent
b87705dc0c
commit
c6dcf11ad0
1 changed files with 47 additions and 38 deletions
|
@ -103,6 +103,7 @@ struct CustomMenuLayer : Modify<CustomMenuLayer, MenuLayer> {
|
||||||
if (!shownTriedToLoadDlls) {
|
if (!shownTriedToLoadDlls) {
|
||||||
shownTriedToLoadDlls = true;
|
shownTriedToLoadDlls = true;
|
||||||
if (LoaderImpl::get()->userTriedToLoadDLLs()) {
|
if (LoaderImpl::get()->userTriedToLoadDLLs()) {
|
||||||
|
Loader::get()->queueInMainThread([] {
|
||||||
auto popup = FLAlertLayer::create(
|
auto popup = FLAlertLayer::create(
|
||||||
"Hold up!",
|
"Hold up!",
|
||||||
"It appears that you have tried to <cr>load DLLs</c> with Geode. "
|
"It appears that you have tried to <cr>load DLLs</c> with Geode. "
|
||||||
|
@ -113,9 +114,10 @@ struct CustomMenuLayer : Modify<CustomMenuLayer, MenuLayer> {
|
||||||
"your own risk.</c>",
|
"your own risk.</c>",
|
||||||
"OK"
|
"OK"
|
||||||
);
|
);
|
||||||
popup->m_scene = this;
|
|
||||||
popup->m_noElasticity = true;
|
popup->m_noElasticity = true;
|
||||||
popup->show();
|
popup->show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,15 +125,18 @@ struct CustomMenuLayer : Modify<CustomMenuLayer, MenuLayer> {
|
||||||
static bool shownUpdateInfo = false;
|
static bool shownUpdateInfo = false;
|
||||||
if (updater::isNewUpdateDownloaded() && !shownUpdateInfo) {
|
if (updater::isNewUpdateDownloaded() && !shownUpdateInfo) {
|
||||||
shownUpdateInfo = true;
|
shownUpdateInfo = true;
|
||||||
|
|
||||||
|
Loader::get()->queueInMainThread([] {
|
||||||
auto popup = FLAlertLayer::create(
|
auto popup = FLAlertLayer::create(
|
||||||
"Update downloaded",
|
"Update downloaded",
|
||||||
"A new <cy>update</c> for Geode has been installed! "
|
"A new <cy>update</c> for Geode has been installed! "
|
||||||
"Please <cy>restart the game</c> to apply.",
|
"Please <cy>restart the game</c> to apply.",
|
||||||
"OK"
|
"OK"
|
||||||
);
|
);
|
||||||
popup->m_scene = this;
|
|
||||||
popup->m_noElasticity = true;
|
popup->m_noElasticity = true;
|
||||||
popup->show();
|
popup->show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// show crash info
|
// show crash info
|
||||||
|
@ -142,6 +147,9 @@ struct CustomMenuLayer : Modify<CustomMenuLayer, MenuLayer> {
|
||||||
!Mod::get()->template getSettingValue<bool>("disable-last-crashed-popup")
|
!Mod::get()->template getSettingValue<bool>("disable-last-crashed-popup")
|
||||||
) {
|
) {
|
||||||
shownLastCrash = true;
|
shownLastCrash = true;
|
||||||
|
|
||||||
|
// open the dialog a frame later (after the scene is set) for proper key priority
|
||||||
|
Loader::get()->queueInMainThread([] {
|
||||||
auto popup = createQuickPopup(
|
auto popup = createQuickPopup(
|
||||||
"Crashed",
|
"Crashed",
|
||||||
"It appears that the last session crashed. Would you like to "
|
"It appears that the last session crashed. Would you like to "
|
||||||
|
@ -155,9 +163,10 @@ struct CustomMenuLayer : Modify<CustomMenuLayer, MenuLayer> {
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
popup->m_scene = this;
|
|
||||||
popup->m_noElasticity = true;
|
popup->m_noElasticity = true;
|
||||||
|
|
||||||
popup->show();
|
popup->show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for mod updates
|
// Check for mod updates
|
||||||
|
|
Loading…
Reference in a new issue