mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-01-11 20:29:23 +01:00
22 lines
521 B
C++
22 lines
521 B
C++
#pragma once
|
|
#include "logger/IOutputStream.h"
|
|
|
|
#define REG_NOCASH_STRING_OUT (*(vu32*)0x04FFFA10)
|
|
#define REG_NOCASH_CHAR_OUT (*(vu32*)0x04FFFA1C)
|
|
|
|
class NocashOutputStream : public IOutputStream
|
|
{
|
|
public:
|
|
void Write(const char* str) override
|
|
{
|
|
// melon ds doesn't support string addresses in itcm and dtcm
|
|
char c;
|
|
while ((c = *str++) != 0)
|
|
{
|
|
REG_NOCASH_CHAR_OUT = c;
|
|
}
|
|
// REG_NOCASH_STRING_OUT = (u32)str;
|
|
}
|
|
|
|
void Flush() override { }
|
|
}; |