Client: Add LogonUI & Storage

This commit is contained in:
Ralf
2024-09-01 00:06:40 +03:00
parent 5a829808df
commit 41a30ff154
21 changed files with 906 additions and 18 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <Utils/FileSystem.h>
QString ReadFileString(const QString &filePath, bool* result) {
QFile file(filePath);
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
*result = false;
return QString();
}
QTextStream in(&file);
QString content = in.readAll();
file.close();
*result = true;
return content;
}