aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/squirrel.h
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-11-12 15:39:39 +0100
committerGitHub <noreply@github.com>2022-11-12 14:39:39 +0000
commitbf09852285941e20a04731443d03c693e3f8ba2d (patch)
treea254973af94d819ab18b969e23045a309cbd15f7 /NorthstarDLL/squirrel.h
parentab5db7fde23ef6cd87fa8a7e07973179a80e02d4 (diff)
downloadNorthstarLauncher-bf09852285941e20a04731443d03c693e3f8ba2d.tar.gz
NorthstarLauncher-bf09852285941e20a04731443d03c693e3f8ba2d.zip
Logging improvements + Colours (new) (#320)
* log colours :) * commend the freopen stuff (it causes problems) * formatting * add explanatory comment * gaming maybe * move set pattern * ok this works now i think * trailing space :) * Revert "Merge branch 'main' into log-colours" This reverts commit d40b6496b7bd3b3f20f51cc2311b0369aeabe735, reversing changes made to a98bcc22e8961b325806f6a9ca85e64353fd574c. * Revert "Revert "Merge branch 'main' into log-colours"" This reverts commit da792245b1cd7d0ac9e22d5633770142a43ce10c. * fix shit maybe * fix shit but better * initial, still WIP * Add GetContextName_Short * colours for in game console * working, time to improve code * rename var + add a colour or two * whoops * change rpak filesystem to RP NATIVE * add RP NATIVE and NORTHSTAR tags * clang-format off because formatting * formatting 2 * formatting 3: the formattening * bruh * revert unnecessary change * improve comment * Set console title to show profile * pain * Made code not shit * Formatting and remove warning box * Update main.cpp * Formatting * More format changes * Again * Fix small things from code review * Remove empty line * renamed NATIVE_EN -> NATIVE_ENGINE * Update logging.cpp * Update sourceconsole.cpp Co-authored-by: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com>
Diffstat (limited to 'NorthstarDLL/squirrel.h')
-rw-r--r--NorthstarDLL/squirrel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/NorthstarDLL/squirrel.h b/NorthstarDLL/squirrel.h
index a3a214de..a157b1af 100644
--- a/NorthstarDLL/squirrel.h
+++ b/NorthstarDLL/squirrel.h
@@ -83,6 +83,7 @@ enum class ScriptContext : int
};
const char* GetContextName(ScriptContext context);
+const char* GetContextName_Short(ScriptContext context);
eSQReturnType SQReturnTypeFromString(const char* pReturnType);
const char* SQTypeNameFromID(const int iTypeId);
@@ -144,6 +145,8 @@ template <ScriptContext context> class SquirrelManager
bool m_bFatalCompilationErrors = false;
+ std::shared_ptr<spdlog::logger> logger;
+
#pragma region SQVM funcs
RegisterSquirrelFuncType RegisterSquirrelFunc;
sq_defconstType __sq_defconst;