Changed V7 to No V7

This commit is contained in:
2023-06-09 14:36:47 -04:00
parent 7fb8c5fefa
commit a436c20037
21 changed files with 27 additions and 65 deletions

View File

@@ -0,0 +1,50 @@
#pragma once
#include "enginewrapper.hpp"
namespace engineutil {
// Load the DLL and initialize the wrapper, if possible.
void init_wrapper(EngineWrapper* w);
// Print text on the console.
void DPrint(const FString& fs);
// Print text on the console.
void DPrint(const char* msg);
// Print text on the console.
void DPrintHook(const char* msg, size_t len);
// Get all the stored dprints.
const TArray<FString>& DPrintGetStored();
// Clear the stored dprints.
void DPrintClearStored();
class ConsoleOutput {
private:
FString Content;
bool Dirty;
// Truncate the console to a reasonable number of
// lines. The length is hardwired.
void Truncate();
public:
// Append a line of text to the console.
void Append(const FString& text);
// Append a line of text to the console on a line by itself.
void AppendLine(const FString& text);
// Get the console text as a string.
const FString& Get() const { return Content; }
// Return if the dirty flag is set.
bool IsDirty() const { return Dirty; }
// Clear the dirty flag.
void ClearDirty() { Dirty = false; }
};
} // namespace engineutil