10 Commits

Author SHA1 Message Date
Myles Busig
67f16364ec Change debug::puts to use raw char* and copy
In order to handle the self-assign case, string::operator= moves the
string, which may copy the string in reverse. The MGBA string register
does not allow this I believe. In order to avoid this, it now uses a raw
character buffer and is copied using string_view::copy.
string_view::copy will always copy the string forward.
2024-03-07 15:58:51 -07:00
Myles Busig
da4816dcc3 Change debug::puts to use string_view instead of const char* 2024-03-07 14:27:44 -07:00
Myles Busig
85aa1894e4 Change debug registers to use references instead of pointers 2024-03-04 21:18:45 -07:00
Myles Busig
6a538fb5e5 Change debug::string to use MTL string instead of C strings 2024-03-04 21:17:16 -07:00
Myles Busig
9efe4e8bc3 Test MGBA logging 2024-02-29 16:59:32 -07:00
Myles Busig
489e942bd2 Add MGBA debug logging w/ puts
MGBA debugging must be enabled using debug::open and disabled using
debug::close. This commit adds logging through debug::puts. TODO: add
logging using debug::printf and debug::write.
2024-02-29 16:57:04 -07:00
Myles Busig
f75e734c8b Display bitmap image instead of gradient colors 2024-02-22 18:22:25 -07:00
Myles Busig
619badb068 Display color gradient from black->RGB on separate lines 2024-02-22 16:03:09 -07:00
Myles Busig
7489fe4849 Set display mode and busy-loop VSync 2024-02-22 12:58:52 -07:00
Myles Busig
a2c3c6b92a Add main.cpp 2024-02-22 12:25:55 -07:00