We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b8fb73 commit ae90fc9Copy full SHA for ae90fc9
loader/src/platform/ios/LoaderImpl.mm
@@ -3,6 +3,7 @@
3
#include <Geode/loader/Dirs.hpp>
4
#include <Geode/loader/Loader.hpp>
5
#include <Geode/loader/Log.hpp>
6
+#include <Geode/utils/file.hpp>
7
#include <loader/ModImpl.hpp>
8
#include <loader/IPC.hpp>
9
#include <loader/console.hpp>
@@ -69,6 +70,15 @@
69
70
}
71
72
std::string Loader::Impl::getLaunchCommand() const {
73
+ auto launchArgsFile = dirs::getModRuntimeDir() / "launch-args.txt";
74
+ if (std::filesystem::exists(launchArgsFile)) {
75
+ log::debug("Reading launch arguments from {}", launchArgsFile.string());
76
+ auto content = file::readString(launchArgsFile);
77
+ if (content.isOk()) {
78
+ return content.unwrap();
79
+ }
80
81
+
82
return (getenv("LAUNCHARGS")) ? getenv("LAUNCHARGS") : std::string();
83
84
0 commit comments