git repos / blockattack-game

commit 8cb016a5

sago007 · 2019-03-09 15:41
8cb016a549367c923749ee6b106e9d477f270e2d patch · browse files
parent 140ce5ade5ad9ff78c0f4383660d0addc4906e80

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() {