commit 8cb016a5
Write the system info to "about.txt" when accessing the page
Changed files
| M | source/code/HelpAboutState.cpp before |
diff --git a/source/code/HelpAboutState.cpp b/source/code/HelpAboutState.cpp
index 721f7b3..4459cae 100644
--- a/source/code/HelpAboutState.cpp
+++ b/source/code/HelpAboutState.cpp
@@ -27,6 +27,7 @@ https://blockattack.net
#include "MenuSystem.h"
#include "sstream"
#include "version.h"
+#include "sago/SagoMisc.hpp"
const int xsize = 1024;
const int ysize = 768;
@@ -82,6 +83,7 @@ HelpAboutState::HelpAboutState() {
infoStream << _("Locale:") << " " << setlocale( LC_CTYPE, nullptr ) << "\n";
setHelpGamepadFont(&globalData.spriteHolder->GetDataHolder(), titleField, _("About"));
setHelpGamepadFont(&globalData.spriteHolder->GetDataHolder(), infoBox, infoStream.str().c_str());
+ sago::WriteFileContent("about.txt", infoStream.str());
}
HelpAboutState::~HelpAboutState() {