Skip to content

Commit 58bdd89

Browse files
committed
Removed iOS support for custom splash files
1 parent f8f4a03 commit 58bdd89

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"extra-splash-file": {
2626
"type": "file",
2727
"name": "Extra Splashes",
28+
"platforms": ["android", "win", "mac"],
2829
"description": "Additional splash texts, one per line. Restart your game to apply. See more info about writing these on the GitHub page!",
2930
"requires-restart": true,
3031
"default": {
3132
"win": "",
3233
"mac": "",
33-
"android": "",
34-
"ios": ""
34+
"android": ""
3535
},
3636
"control": {
3737
"dialog": "open",

src/MenuLayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ class $modify(ST_MenuLayer, MenuLayer)
2929
log::error("Failed to load file {}", Mod::get()->getResourcesDir() / "splash.splash");
3030
}
3131

32+
#ifndef GEODE_IS_IOS
3233
auto extraPath = Mod::get()->getSettingValue<std::filesystem::path>("extra-splash-file");
3334
if (!extraPath.empty() && !m_fields->m_SplashRead->loadFile(extraPath))
3435
{
3536
log::error("Failed to load file {}", extraPath.string());
3637
}
38+
#endif // ifndef GEODE_IS_IOS
3739
}
3840
m_fields->m_SplashStr = m_fields->m_SplashRead->getRandomLine();
3941
auto mainTitle = getChildByIDRecursive("main-title");

0 commit comments

Comments
 (0)