Compare commits

...

4 commits

Author SHA1 Message Date
matcool
0e8d4c60bc fix nest issue
Some checks are pending
Build Binaries / Build Windows (push) Waiting to run
Build Binaries / Build macOS (push) Waiting to run
Build Binaries / Build Android (64-bit) (push) Waiting to run
Build Binaries / Build Android (32-bit) (push) Waiting to run
Build Binaries / Publish (push) Blocked by required conditions
Check CHANGELOG.md / Check CHANGELOG.md (push) Waiting to run
2024-11-14 20:37:40 -03:00
matcool
81cd8d1bca add back warning for outdated fix 2024-11-14 20:37:40 -03:00
Fleeym
48cad613c7
Add changes from v3.9.2 (#1153)
* fix: fix mod downloads not checking version (#1149)

* bump version to 3.9.1

* fix(index): don't remove gd and geode params (#1152)

* chore: version bump

---------

Co-authored-by: Cvolton <clubpenguinmisa@gmail.com>
2024-11-15 01:22:51 +02:00
mat
f9fed578aa
update matjson to 3.1.0 2024-11-14 14:49:08 -03:00
6 changed files with 29 additions and 21 deletions

View file

@ -35,6 +35,12 @@
* Add hashtag symbol to CommonFilter::Any (#1131) * Add hashtag symbol to CommonFilter::Any (#1131)
* Disable forward compat on android (c9e97af) * Disable forward compat on android (c9e97af)
## v3.9.2
* Fix searching for mods returning unavailable mods (#1149)
## v3.9.1
* Fix mod downloads not checking version (f575187)
## v3.9.0 ## v3.9.0
* Many changes to the settings ui (#1108) * Many changes to the settings ui (#1108)
* Fuzzy search is now more reasonable * Fuzzy search is now more reasonable

View file

@ -237,7 +237,7 @@ endif()
set(MAT_JSON_AS_INTERFACE ON) set(MAT_JSON_AS_INTERFACE ON)
CPMAddPackage("gh:geode-sdk/result@1.2.1") CPMAddPackage("gh:geode-sdk/result@1.2.1")
CPMAddPackage("gh:geode-sdk/json@3.0.3") CPMAddPackage("gh:geode-sdk/json@3.1.0")
CPMAddPackage("gh:fmtlib/fmt#11.0.2") CPMAddPackage("gh:fmtlib/fmt#11.0.2")
target_compile_definitions(${PROJECT_NAME} INTERFACE MAT_JSON_DYNAMIC=1) target_compile_definitions(${PROJECT_NAME} INTERFACE MAT_JSON_DYNAMIC=1)

View file

@ -37,15 +37,15 @@ static void patchCall(uintptr_t addr, uintptr_t newCall) {
$execute { $execute {
if (LoaderImpl::get()->isForwardCompatMode()) return; if (LoaderImpl::get()->isForwardCompatMode()) return;
#if GEODE_COMP_GD_VERSION == 22040
// BitmapDC::~BitmapDC // BitmapDC::~BitmapDC
#if 0 // TODO: mat GEODE_COMP_GD_VERSION == 22040
patchCall(0xC9A56, (uintptr_t)&RemoveFontResourceWHook); patchCall(0xC9A56, (uintptr_t)&RemoveFontResourceWHook);
// BitmapDC::setFont // BitmapDC::setFont
patchCall(0xCB5BC, (uintptr_t)&RemoveFontResourceWHook); patchCall(0xCB5BC, (uintptr_t)&RemoveFontResourceWHook);
patchCall(0xCB642, (uintptr_t)&AddFontResourceWHook); patchCall(0xCB642, (uintptr_t)&AddFontResourceWHook);
#else #else
// #pragma message("Unsupported GD version!") #pragma message("Unsupported GD version!")
#endif #endif
}; };

View file

@ -505,20 +505,20 @@ void Loader::Impl::loadModGraph(Mod* node, bool early) {
thread::setName("Mod Unzip"); thread::setName("Mod Unzip");
log::loadNest(nest); log::loadNest(nest);
auto res = unzipFunction(); auto res = unzipFunction();
auto prevNest = log::saveNest(); this->queueInMainThread([=, this, res = std::move(res)]() {
log::loadNest(nest); auto prevNest = log::saveNest();
if (!res) { log::loadNest(nest);
this->addProblem({ if (!res) {
LoadProblem::Type::UnzipFailed, this->addProblem({
node, LoadProblem::Type::UnzipFailed,
res.unwrapErr() node,
}); res.unwrapErr()
log::error("Failed to unzip: {}", res.unwrapErr()); });
m_refreshingModCount -= 1; log::error("Failed to unzip: {}", res.unwrapErr());
log::loadNest(prevNest); m_refreshingModCount -= 1;
return; log::loadNest(prevNest);
} return;
this->queueInMainThread([=, this]() { }
loadFunction(); loadFunction();
log::loadNest(prevNest); log::loadNest(prevNest);
}); });

View file

@ -554,12 +554,11 @@ ServerRequest<ServerModsList> server::getMods(ModsQuery const& query, bool useCa
// Add search params // Add search params
if (query.query) { if (query.query) {
req.param("query", *query.query); req.param("query", *query.query);
} else {
// Target current GD version and Loader version when query is not set
req.param("gd", GEODE_GD_VERSION_STR);
req.param("geode", Loader::get()->getVersion().toNonVString());
} }
req.param("gd", GEODE_GD_VERSION_STR);
req.param("geode", Loader::get()->getVersion().toNonVString());
if (query.platforms.size()) { if (query.platforms.size()) {
std::string plats = ""; std::string plats = "";
bool first = true; bool first = true;

View file

@ -1,4 +1,7 @@
#include "ModPopup.hpp" #include "ModPopup.hpp"
#include <optional>
#include <Geode/binding/ButtonSprite.hpp> #include <Geode/binding/ButtonSprite.hpp>
#include <Geode/ui/MDTextArea.hpp> #include <Geode/ui/MDTextArea.hpp>
#include <Geode/ui/TextInput.hpp> #include <Geode/ui/TextInput.hpp>