Add Context to core

This commit is contained in:
2017-10-12 04:50:33 -05:00
parent 329e8be825
commit 507c894c15
8 changed files with 62 additions and 28 deletions

View File

@@ -8,13 +8,14 @@
#include <nostalgia/core/core.hpp>
using namespace nostalgia;
using namespace nostalgia::core;
int main() {
core::init();
core::initConsole();
core::puts(9 * 32 + 8, "HELLO,WORLD!");
core::puts(10 * 32 + 8, "01234 56789");
Context ctx;
init(&ctx);
initConsole(&ctx);
puts(&ctx, 9 * 32 + 8, "HELLO,WORLD!");
puts(&ctx, 10 * 32 + 8, "01234 56789");
while (1);
return 0;
}