Version 0.8.1 (StealConsole)
This commit is contained in:
parent
8b70d0e9b7
commit
20c3a525c8
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ include $(DEVKITARM)/3ds_rules
|
||||
|
||||
export renderd7_MAJOR := 0
|
||||
export renderd7_MINOR := 8
|
||||
export renderd7_PATCH := 0
|
||||
export renderd7_PATCH := 1
|
||||
|
||||
VERSION := $(renderd7_MAJOR).$(renderd7_MINOR).$(renderd7_PATCH)
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <renderd7/bmp.hpp>
|
||||
#include <renderd7/renderd7.hpp>
|
||||
#include <renderd7/renderd7.hpp>
|
||||
#include <renderd7/StealConsole.hpp>
|
16
include/renderd7/StealConsole.hpp
Normal file
16
include/renderd7/StealConsole.hpp
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
namespace RenderD7
|
||||
{
|
||||
class StealConsole
|
||||
{
|
||||
public:
|
||||
StealConsole();
|
||||
~StealConsole();
|
||||
std::string GetStdout();
|
||||
private:
|
||||
std::stringstream stolen_stdout;
|
||||
};
|
||||
}
|
@ -20,7 +20,6 @@
|
||||
#include <unistd.h>
|
||||
#include <vector>
|
||||
|
||||
|
||||
#include <codecvt>
|
||||
|
||||
#include <renderd7/BitmapPrinter.hpp>
|
||||
@ -43,14 +42,15 @@
|
||||
#include <renderd7/stringtool.hpp>
|
||||
#include <renderd7/thread.hpp>
|
||||
|
||||
|
||||
extern "C" {
|
||||
#include <renderd7/external/fs.h>
|
||||
}
|
||||
|
||||
#define RENDERD7VSTRING "0.8.0"
|
||||
#define RENDERD7VSTRING "0.8.1"
|
||||
#define CHANGELOG \
|
||||
"0.8.0: Implement BitmapPrinter\n0.7.3: Implement Over Render Overlay " \
|
||||
"0.8.1: Add abillity to Get Stdout as string to render it to the " \
|
||||
"screen.\n0.8.0: Implement BitmapPrinter\n0.7.3: Implement Over Render " \
|
||||
"Overlay " \
|
||||
"Framework\n0.7.2: Implement MT to csv file saving. Add RGB2HEX. \n0.7.1: " \
|
||||
"Add the New Overlay Handler. Its Just in code and does nothing yet. " \
|
||||
"\n0.7.0: Made Big Progress In the MT Ovl but it still crashes On a Scnd " \
|
||||
|
17
source/StealConsole.cpp
Normal file
17
source/StealConsole.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include <iostream>
|
||||
#include <renderd7/StealConsole.hpp>
|
||||
|
||||
namespace RenderD7 {
|
||||
StealConsole::StealConsole() {
|
||||
std::streambuf *old = std::cout.rdbuf(this->stolen_stdout.rdbuf());
|
||||
if (old) {
|
||||
// To prevent from unused error
|
||||
}
|
||||
}
|
||||
|
||||
StealConsole::~StealConsole() {
|
||||
// Do Nothing Here
|
||||
}
|
||||
|
||||
std::string StealConsole::GetStdout() { return this->stolen_stdout.str(); }
|
||||
} // namespace RenderD7
|
Loading…
Reference in New Issue
Block a user