Skip to content

Commit

Permalink
Fix errors in Main
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBombardir committed Jan 1, 2025
1 parent e2702e3 commit b7942f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/mod/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static std::unique_ptr<Main> instance;

Main& Main::getInstance() { return *instance; }

[[maybe_unused]] bool Main::load() {
bool Main::load() {
getSelf().getLogger().info("The mod is loading...");

if (!manager::MainManager::initManagers(getSelf())) {
Expand All @@ -26,7 +26,7 @@ Main& Main::getInstance() { return *instance; }
return true;
}

[[maybe_unused]] bool Main::enable() {
bool Main::enable() {
getSelf().getLogger().info("The mod is enabling...");

if (!manager::CommandManager::registerCommands()) {
Expand All @@ -36,14 +36,14 @@ Main& Main::getInstance() { return *instance; }

getSelf().getLogger().info(
"The mod has been successfully enabled! Choosed language: "
+ manager::LanguageManager::getInstance()->getTranslate("languageName")
+ manager::LanguageManager::getTranslate("languageName")
);

getSelf().getLogger().info("Author: vk.com/lordbomba");
return true;
}

[[maybe_unused]] bool Main::disable() {
bool Main::disable() {
getSelf().getLogger().info("The mod is disabling...");

manager::MainManager::disposeManagers();
Expand All @@ -54,4 +54,4 @@ Main& Main::getInstance() { return *instance; }

} // namespace power_ranks

LL_REGISTER_MOD(power_ranks::Main, power_ranks::instance);
LL_REGISTER_MOD(power_ranks::Main, *power_ranks::instance);
6 changes: 3 additions & 3 deletions src/mod/Main.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class Main {

[[nodiscard]] ll::mod::NativeMod& getSelf() const { return mSelf; }

[[maybe_unused]] bool load();
[[maybe_unused]] bool enable();
[[maybe_unused]] bool disable();
bool load();
bool enable();
bool disable();

private:
ll::mod::NativeMod& mSelf;
Expand Down

0 comments on commit b7942f4

Please sign in to comment.