Skip to content

Commit

Permalink
add logging, comment out stuff
Browse files Browse the repository at this point in the history
jtothebell committed Dec 2, 2023

Verified

This commit was signed with the committer’s verified signature.
1 parent 0be1ae4 commit 4dcc758
Showing 3 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions source/logger.cpp
Original file line number Diff line number Diff line change
@@ -4,9 +4,9 @@

#include "logger.h"

#define LOGGER_ENABLED false
#define LOGGER_ENABLED true

#define PRINT_TO_CONSOLE false
#define PRINT_TO_CONSOLE true

FILE * m_file = nullptr;
bool m_enabled = false;
22 changes: 11 additions & 11 deletions source/p8GlobalLuaFunctions.h
Original file line number Diff line number Diff line change
@@ -352,17 +352,17 @@ function load(arg)
success, msg = __load(arg), ""
/*
if success then
print('ok')
else
color(14)
print('failed')
local x,y = cursor()
cursor(0, y)
print(msg)
end
*/
--if success then
-- print('ok')
--else
-- color(14)
-- print('failed')
-- local x,y = cursor()
-- cursor(0, y)
-- print(msg)
--end
end
--todo: make this bettter/verify the list
6 changes: 4 additions & 2 deletions source/printHelper.cpp
Original file line number Diff line number Diff line change
@@ -230,7 +230,8 @@ int print(std::string str, int x, int y, uint8_t c) {
//pause for x num frames
int frameCount = pow2(p0CharToNum(commandChar) - 1);
while (frameCount > 0){
_ph_vm->vm_flip();
//TODO: yield here? not sure how to handle this
//_ph_vm->vm_flip();

frameCount--;
}
@@ -484,7 +485,8 @@ int print(std::string str, int x, int y, uint8_t c) {
forceCharHeight);

while (framesToPause > 0){
_ph_vm->vm_flip();
//TODO: yield here? not sure how to handle this
//_ph_vm->vm_flip();

framesToPause--;
}

0 comments on commit 4dcc758

Please sign in to comment.