Skip to content

Commit

Permalink
⏪ comment logs out
Browse files Browse the repository at this point in the history
  • Loading branch information
Roms1383 committed Apr 17, 2024
1 parent 8605f7f commit 1431932
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions scripts/Addicted/Utils.reds
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,14 @@

module Addicted.Utils

private static func Exists(funcName: CName) -> Bool {
let global = Reflection.GetGlobalFunction(funcName);
let exists = IsDefined(global);
return exists;
}

public static func E(str: String) -> Void {
if ShowDebugLogsAddicted() && Exists(n"LogChannel") {
LogChannel(n"DEBUG", s"[Addicted] \(str)");
if ShowDebugLogsAddicted() {
// LogChannel(n"DEBUG", s"[Addicted] \(str)");
};
}

public static func F(str: String) -> Void {
if Exists(n"LogError") {
LogError(s"[ERROR] [Addicted] \(str)");
}
// LogError(s"[ERROR] [Addicted] \(str)");
}

public static func EI(id: TweakDBID, str: String) -> Void {
Expand Down

0 comments on commit 1431932

Please sign in to comment.