Skip to content

Commit

Permalink
Adds version number to trace/error output
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed May 27, 2023
1 parent a61103d commit 03a1aee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/__CardboardSystem/__CardboardSystem.gml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function __CardboardInitialize()

function __CardboardTrace()
{
var _string = "Cardboard: ";
var _string = "Cardboard " + string(__CARDBOARD_VERSION) + ": ";

var _i = 0
repeat(argument_count)
Expand Down Expand Up @@ -104,8 +104,8 @@ function __CardboardError()
++_i;
}

show_debug_message("Cardboard: " + string_replace_all(_string, "\n", "\n "));
show_error("Cardboard:\n" + _string + "\n ", true);
show_debug_message("Cardboard " + string(__CARDBOARD_VERSION) + ": " + string_replace_all(_string, "\n", "\n "));
show_error("Cardboard " + string(__CARDBOARD_VERSION) + ":\n" + _string + "\n ", true);
}


0 comments on commit 03a1aee

Please # to comment.