Convert to SFML3

This commit is contained in:
Lorenzooone
2024-09-13 17:32:20 +02:00
parent 3e3d6da2c9
commit b9e6e34342
26 changed files with 311 additions and 373 deletions

View File

@@ -1,5 +1,8 @@
#include "utils.hpp"
#if defined (__linux__) && defined(XLIB_BASED)
#include <X11/Xlib.h>
#endif
#include <iostream>
#include <fstream>
#include <sstream>
@@ -61,6 +64,12 @@ uint16_t to_be(uint16_t value) {
return value;
}
void init_threads(void) {
#if defined(__linux__) && defined(XLIB_BASED)
XInitThreads();
#endif
}
std::string get_version_string(bool get_letter) {
std::string version_str = std::to_string(APP_VERSION_MAJOR) + "." + std::to_string(APP_VERSION_MINOR) + "." + std::to_string(APP_VERSION_REVISION);
if(get_letter)