foxygit / fake-08-xbox360 Log in
commit f7585f65a89a499171c16539d2af77b2ec39789f
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Mon Jun 27 19:24:37 2022 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Mon Jun 27 19:24:37 2022 -0600

    Fix duplicate logs

    Also turn off logging by default
    Make default menu/resize key options not breaking changes
---
 source/hostCommonFunctions.cpp | 6 +++---
 source/logger.cpp              | 7 ++-----
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/source/hostCommonFunctions.cpp b/source/hostCommonFunctions.cpp
index 94ede2c..1ce7a11 100644
--- a/source/hostCommonFunctions.cpp
+++ b/source/hostCommonFunctions.cpp
@@ -23,7 +23,7 @@ std::string defaultIni =
 "stretch = 1\n"
 "resizekey = 1\n"
 "kbmode = 0\n"
-"menustyle = 1\n"
+"menustyle = 0\n"
 "bgcolor = 0\n";

 void Host::setUpPaletteColors(){
@@ -150,7 +150,7 @@ void Host::loadSettingsIni(){
 	#endif

 	//resize hotkey
-	long resizekeySetting = settingsIni.GetLongValue("settings", "resizekey", (long)NoResize);
+	long resizekeySetting = settingsIni.GetLongValue("settings", "resizekey", (long)YesResize);
 	resizekey = (ResizekeyOption) resizekeySetting;

 	//kbmode
@@ -158,7 +158,7 @@ void Host::loadSettingsIni(){
 	kbmode = (KeyboardOption) kbmodeSetting;

 	//bgcolor
-	long menustyleSetting = settingsIni.GetLongValue("settings", "menustyle", (long)Fancy);
+	long menustyleSetting = settingsIni.GetLongValue("settings", "menustyle", (long)Classic);
 	menustyle = (MenuStyleOption) menustyleSetting;

 	//bgcolor
diff --git a/source/logger.cpp b/source/logger.cpp
index d228665..87eba07 100644
--- a/source/logger.cpp
+++ b/source/logger.cpp
@@ -4,9 +4,9 @@

 #include "logger.h"

-#define LOGGER_ENABLED true
+#define LOGGER_ENABLED false

-#define PRINT_TO_CONSOLE true
+#define PRINT_TO_CONSOLE false

 FILE * m_file = nullptr;
 bool m_enabled = false;
@@ -60,9 +60,6 @@ void Logger_Write(const char * format, ...)
 	vfprintf(stdout, format, args);
 	#endif
     #endif
-	#if PRINT_TO_CONSOLE
-	vfprintf(stdout, format, args);
-	#endif
 }

 void Logger_WriteUnformatted(const char * message)