mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-20 18:09:59 -04:00
someone (prevter) wants to make a crashlog mod so i guess it's fine we export these as well
This commit is contained in:
parent
e2c75e2f23
commit
e83e03f714
6 changed files with 20 additions and 10 deletions
loader
include/Geode/loader
src
|
@ -425,7 +425,9 @@ namespace geode {
|
|||
bool isLoggingEnabled() const;
|
||||
void setLoggingEnabled(bool enabled);
|
||||
|
||||
bool hasProblems() const;
|
||||
bool shouldLoad() const;
|
||||
bool isCurrentlyLoading() const;
|
||||
|
||||
friend class ModImpl;
|
||||
};
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
#include <Geode/utils/VersionInfo.hpp>
|
||||
|
||||
namespace about {
|
||||
geode::VersionInfo getLoaderVersion();
|
||||
const char* getLoaderVersionStr();
|
||||
const char* getLoaderCommitHash();
|
||||
const char* getBindingsCommitHash();
|
||||
const char* getLoaderModJson();
|
||||
geode::VersionInfo GEODE_DLL getLoaderVersion();
|
||||
const char* GEODE_DLL getLoaderVersionStr();
|
||||
const char* GEODE_DLL getLoaderCommitHash();
|
||||
const char* GEODE_DLL getBindingsCommitHash();
|
||||
const char* GEODE_DLL getLoaderModJson();
|
||||
};
|
||||
|
|
|
@ -42,9 +42,9 @@ void crashlog::printMods(std::stringstream& stream) {
|
|||
using namespace std::string_view_literals;
|
||||
for (auto& mod : mods) {
|
||||
stream << fmt::format("{} | [{}] {}\n",
|
||||
ModImpl::getImpl(mod)->isCurrentlyLoading() ? "o"sv :
|
||||
mod->isCurrentlyLoading() ? "o"sv :
|
||||
mod->isEnabled() ? "x"sv :
|
||||
ModImpl::getImpl(mod)->hasProblems() ? "!"sv : // thank you for this bug report
|
||||
mod->hasProblems() ? "!"sv : // thank you for this bug report
|
||||
mod->shouldLoad() ? "~"sv :
|
||||
" "sv,
|
||||
mod->getVersion().toString(), mod->getID()
|
||||
|
|
|
@ -35,8 +35,8 @@ namespace crashlog {
|
|||
|
||||
std::string getDateString(bool filesafe);
|
||||
|
||||
void printGeodeInfo(std::stringstream& stream);
|
||||
void printMods(std::stringstream& stream);
|
||||
void GEODE_DLL printGeodeInfo(std::stringstream& stream);
|
||||
void GEODE_DLL printMods(std::stringstream& stream);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -230,6 +230,14 @@ bool Mod::hasSavedValue(std::string_view const key) {
|
|||
return this->getSaveContainer().contains(key);
|
||||
}
|
||||
|
||||
bool Mod::hasProblems() const {
|
||||
return m_impl->hasProblems();
|
||||
}
|
||||
|
||||
bool Mod::shouldLoad() const {
|
||||
return m_impl->shouldLoad();
|
||||
}
|
||||
|
||||
bool Mod::isCurrentlyLoading() const {
|
||||
return m_impl->isCurrentlyLoading();
|
||||
}
|
|
@ -274,7 +274,7 @@ void ModCell::updateState() {
|
|||
m_enableToggle->m_onButton->setOpacity(!toggleable ? 100 : 255);
|
||||
m_enableToggle->m_onButton->setColor(!toggleable ? cc3x(155) : cc3x(255));
|
||||
}
|
||||
bool hasProblems = ModImpl::getImpl(m_mod)->hasProblems();
|
||||
bool hasProblems = m_mod->hasProblems();
|
||||
m_unresolvedExMark->setVisible(hasProblems);
|
||||
|
||||
this->updateCellLayout();
|
||||
|
|
Loading…
Reference in a new issue