From 189ce21acffc390ca8a21fde302ed6a0151a3536 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 4 Nov 2019 23:52:08 +0100 Subject: [PATCH] - reactivated the binding reladed CCMDs. --- source/common/console/c_bind.cpp | 2 -- source/common/gameconfigfile.cpp | 10 ++++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/common/console/c_bind.cpp b/source/common/console/c_bind.cpp index 47abb71af..11bd45395 100644 --- a/source/common/console/c_bind.cpp +++ b/source/common/console/c_bind.cpp @@ -534,7 +534,6 @@ void C_UnbindAll () AutomapBindings.UnbindAll(); } -#if 0 CCMD (unbindall) { C_UnbindAll (); @@ -643,7 +642,6 @@ CCMD(rebind) bindings->SetBind(key, argv[1]); } } -#endif //============================================================================= // diff --git a/source/common/gameconfigfile.cpp b/source/common/gameconfigfile.cpp index 5c7945de6..ac6857b04 100644 --- a/source/common/gameconfigfile.cpp +++ b/source/common/gameconfigfile.cpp @@ -36,7 +36,7 @@ #include "gameconfigfile.h" #include "c_cvars.h" -//#include "c_dispatch.h" +#include "c_dispatch.h" #include "c_bind.h" #include "m_argv.h" #include "cmdlib.h" @@ -52,6 +52,10 @@ #include "gamecontrol.h" #include "version.h" +#ifdef Printf +#undef Printf +#endif + #define LASTRUNVERSION "1" #if !defined _MSC_VER && !defined __APPLE__ @@ -522,13 +526,11 @@ void FGameConfigFile::AddAutoexec (FArgs *list, const char *game) } } -/* CCMD (whereisini) { FString path = M_GetConfigPath(false); - Printf ("%s\n", path.GetChars()); + OSD_Printf ("%s\n", path.GetChars()); } -*/ FGameConfigFile* GameConfig; static FString GameName;