mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Renamed 'r5apexsdkd64.dll' to 'gamesdk.dll'. * Added required dedicated parameters to code instead. * Bug fixes around CCommandLine class (fixed misaligned VTable indexes). * SDK now supports being directly launched by the game executable. The SDK launcher will pass '-launcher' to the game, which indicated its being launched by the launcher. If the game does not receive '-launcher', it assumes its being launched directly from the game executable, which will instead load 'startup_(dedi_)default.cfg'. The sdk dll's are now added to the game's IAT by their dummy exports allowing for them to be loaded when the exe is loaded (the dll's do everything on init).
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
#include "core/stdafx.h"
|
|
#include "core/termutil.h"
|
|
|
|
std::string g_svGreyF = "";
|
|
std::string g_svRedF = "";
|
|
std::string g_svGreenF = "";
|
|
std::string g_svBlueF = "";
|
|
std::string g_svYellowF = "";
|
|
|
|
std::string g_svGreyB = "";
|
|
std::string g_svRedB = "";
|
|
std::string g_svGreenB = "";
|
|
std::string g_svBlueB = "";
|
|
std::string g_svYellowB = "";
|
|
|
|
std::string g_svReset = "";
|
|
|
|
std::string g_svCmdLine;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: sets the global ansi escape sequences.
|
|
// If '-ansiclr' has not been passed to the sdk the char will be empty.
|
|
//-----------------------------------------------------------------------------
|
|
void AnsiColors_Init()
|
|
{
|
|
g_svGreyF = "\033[38;2;204;204;204;48;2;000;000;000m";
|
|
g_svRedF = "\033[38;2;255;000;000;48;2;000;000;000m";
|
|
g_svGreenF = "\033[38;2;000;255;000;48;2;000;000;000m";
|
|
g_svBlueF = "\033[38;2;000;000;255;48;2;000;000;000m";
|
|
g_svYellowF = "\033[38;2;255;255;000;48;2;000;000;000m";
|
|
|
|
g_svGreyB = "\033[38;2;000;000;000;48;2;204;204;204m";
|
|
g_svRedB = "\033[38;2;000;000;000;48;2;255;000;000m";
|
|
g_svGreenB = "\033[38;2;000;000;000;48;2;000;255;000m";
|
|
g_svBlueB = "\033[38;2;000;000;000;48;2;000;000;255m";
|
|
g_svYellowB = "\033[38;2;000;000;000;48;2;255;255;000m";
|
|
|
|
g_svReset = "\033[38;2;204;204;204;48;2;000;000;000m";
|
|
} |