mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
Merge branch 'main' of https://github.com/geode-sdk/geode into main
This commit is contained in:
commit
143cccc6c4
2 changed files with 1 additions and 6 deletions
|
@ -41,8 +41,6 @@ bool Loader::Impl::supportsLaunchArguments() const {
|
|||
return true;
|
||||
}
|
||||
|
||||
#include <loader/console.hpp>
|
||||
|
||||
std::string Loader::Impl::getLaunchCommand() const {
|
||||
std::string launchArgs = "";
|
||||
|
||||
|
@ -60,9 +58,6 @@ std::string Loader::Impl::getLaunchCommand() const {
|
|||
if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) == JNI_OK) {
|
||||
env->ExceptionClear();
|
||||
}
|
||||
|
||||
// note to self: remove this in about a week (02/11 maybe)
|
||||
console::messageBox("Outdated launcher detected", "A very outdated version of the launcher is currently in use. Please update your launcher for the latest bugfixes and features.", Severity::Warning);
|
||||
}
|
||||
|
||||
return launchArgs;
|
||||
|
|
|
@ -217,7 +217,7 @@ void file::pickFile(
|
|||
|
||||
JniMethodInfo t;
|
||||
if (JniHelper::getStaticMethodInfo(t, "com/geode/launcher/utils/GeodeUtils", method.c_str(), "(Ljava/lang/String;)Z")) {
|
||||
jstring stringArg1 = t.env->NewStringUTF(options.defaultPath.value_or(ghc::filesystem::path()).string().c_str());
|
||||
jstring stringArg1 = t.env->NewStringUTF(options.defaultPath.value_or(ghc::filesystem::path()).filename().string().c_str());
|
||||
|
||||
jboolean result = t.env->CallStaticBooleanMethod(t.classID, t.methodID, stringArg1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue