Compare commits

...

9 commits

Author SHA1 Message Date
slideglide
66c7914a3e
Merge 0ade7a7b86 into 0e8d4c60bc 2024-11-15 16:26:04 +11:00
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
slideglide
0ade7a7b86
Fix spelling mistake 2024-11-14 17:10:21 +03:00
slideglide
a7d43c7dec
Fix spelling mistake 2024-11-14 17:09:25 +03:00
slideglide
5de6206894
Fix spelling mistakes 2024-11-14 17:08:59 +03:00
slideglide
bf28de3f95
Fix spelling mistake 2024-11-14 17:08:17 +03:00
slideglide
05f0d143da
Fix spelling mistakes 2024-11-14 17:07:17 +03:00
9 changed files with 37 additions and 29 deletions

View file

@ -35,6 +35,12 @@
* Add hashtag symbol to CommonFilter::Any (#1131)
* 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
* Many changes to the settings ui (#1108)
* Fuzzy search is now more reasonable

View file

@ -208,9 +208,9 @@ namespace cocos2d
/**
* Custom function added for geode; returns if the
* zip file was succesfully decoded.
* zip file was successfully decoded.
*
* @return true if the zip was succesfully loaded,
* @return true if the zip was successfully loaded,
* false otherwise.
*
* @since geode v1.0.0

View file

@ -95,7 +95,7 @@ namespace geode {
enum class Status {
/// The task is still running or waiting to start
Pending,
/// The task has succesfully finished
/// The task has successfully finished
Finished,
/// The task has been cancelled
Cancelled,

View file

@ -850,7 +850,7 @@ namespace geode::cocos {
* @param permissive If true, strings like "f" are considered valid
* representations of the color white. Useful for UIs that allow entering
* a hex color. Empty strings evaluate to pure white
* @returns A ccColor3B if it could be succesfully parsed, or an error
* @returns A ccColor3B if it could be successfully parsed, or an error
* indicating the failure reason
*/
GEODE_DLL Result<cocos2d::ccColor3B> cc3bFromHexString(std::string const& hexValue, bool permissive = false);
@ -863,7 +863,7 @@ namespace geode::cocos {
* @param permissive If true, strings like "f" are considered valid
* representations of the color white. Useful for UIs that allow entering
* a hex color. Empty strings evaluate to pure white
* @returns A ccColor4B if it could be succesfully parsed, or an error
* @returns A ccColor4B if it could be successfully parsed, or an error
* indicating the failure reason
*/
GEODE_DLL Result<cocos2d::ccColor4B> cc4bFromHexString(std::string const& hexValue, bool requireAlpha = false, bool permissive = false);

View file

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

View file

@ -505,6 +505,7 @@ void Loader::Impl::loadModGraph(Mod* node, bool early) {
thread::setName("Mod Unzip");
log::loadNest(nest);
auto res = unzipFunction();
this->queueInMainThread([=, this, res = std::move(res)]() {
auto prevNest = log::saveNest();
log::loadNest(nest);
if (!res) {
@ -518,7 +519,6 @@ void Loader::Impl::loadModGraph(Mod* node, bool early) {
log::loadNest(prevNest);
return;
}
this->queueInMainThread([=, this]() {
loadFunction();
log::loadNest(prevNest);
});
@ -1073,7 +1073,7 @@ void Loader::Impl::installModManuallyFromFile(std::filesystem::path const& path,
createQuickPopup(
"Mod Installed",
fmt::format(
"Mod <co>{}</c> has been succesfully installed from file! "
"Mod <co>{}</c> has been successfully installed from file! "
"<cy>Do you want to delete the original file?</c>",
meta.getName()
),
@ -1092,7 +1092,7 @@ void Loader::Impl::installModManuallyFromFile(std::filesystem::path const& path,
"OK"
)->show();
}
// No need to show a confirmation popup if succesful since that's
// No need to show a confirmation popup if successful since that's
// to be assumed via pressing the button on the previous popup
}
}

View file

@ -256,7 +256,7 @@ std::optional<ModDownload> ModDownloadManager::startDownload(
std::optional<DependencyFor> const& dependencyFor,
std::optional<std::string> const& replacesMod
) {
// If this mod has already been succesfully downloaded or is currently
// If this mod has already been successfully downloaded or is currently
// being downloaded, return as you can't download multiple versions of the
// same mod simultaniously, since that wouldn't make sense. I mean the new
// version would just immediately override to the other one

View file

@ -554,11 +554,10 @@ ServerRequest<ServerModsList> server::getMods(ModsQuery const& query, bool useCa
// Add search params
if (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());
}
if (query.platforms.size()) {
std::string plats = "";

View file

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