Skip to content

Commit

Permalink
refactor: move info to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Aug 3, 2024
1 parent ecdefdd commit f04ad64
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ body:
- type: input
attributes:
label: Version
description: The version of the plugin you are using. (e.g. 1.0.0)
description: The version of the mod you are using. (e.g. 1.0.0)

- type: textarea
attributes:
Expand Down
4 changes: 2 additions & 2 deletions src/mod/MemoryOperators.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file will make your plugin use LeviLamina's memory operators by default.
// This improves the memory management of your plugin and is recommended to use.
// This file will make your mod use LeviLamina's memory operators by default.
// This improves the memory management of your mod and is recommended to use.

#define LL_MEMORY_OPERATORS

Expand Down
12 changes: 6 additions & 6 deletions src/mod/MyMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ static std::unique_ptr<MyMod> instance;
MyMod& MyMod::getInstance() { return *instance; }

bool MyMod::load() {
getSelf().getLogger().info("Loading...");
// Code for loading the plugin goes here.
getSelf().getLogger().debug("Loading...");
// Code for loading the mod goes here.
return true;
}

bool MyMod::enable() {
getSelf().getLogger().info("Enabling...");
// Code for enabling the plugin goes here.
getSelf().getLogger().debug("Enabling...");
// Code for enabling the mod goes here.
return true;
}

bool MyMod::disable() {
getSelf().getLogger().info("Disabling...");
// Code for disabling the plugin goes here.
getSelf().getLogger().debug("Disabling...");
// Code for disabling the mod goes here.
return true;
}

Expand Down
10 changes: 5 additions & 5 deletions src/mod/MyMod.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ class MyMod {

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

/// @return True if the plugin is loaded successfully.
/// @return True if the mod is loaded successfully.
bool load();

/// @return True if the plugin is enabled successfully.
/// @return True if the mod is enabled successfully.
bool enable();

/// @return True if the plugin is disabled successfully.
/// @return True if the mod is disabled successfully.
bool disable();

// TODO: Implement this method if you need to unload the plugin.
// /// @return True if the plugin is unloaded successfully.
// TODO: Implement this method if you need to unload the mod.
// /// @return True if the mod is unloaded successfully.
// bool unload();

private:
Expand Down

0 comments on commit f04ad64

Please sign in to comment.