Add --redirect-console option
This commit is contained in:
1 parent
18719c0c17
commit
2076af47f6
4 files changed
+28
-7
No files matched your search
+17
-1
@@ -651,4 +651,20 @@ class Console
|
||||
petitcom.graphic.GRPFHeight = GRPF.surface.h;
|
||||
GRPF.createTexture(petitcom.renderer, petitcom.textureScaleMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class NativeConsole : Console
|
||||
{
|
||||
File file;
|
||||
this(File file, PetitComputer p)
|
||||
{
|
||||
super(p);
|
||||
this.file = file;
|
||||
}
|
||||
override void printString(wstring text)
|
||||
{
|
||||
super.printString(text);
|
||||
file.write(text);
|
||||
file.flush;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user