adapt global
This commit is contained in:
1 parent
55ccee5b57
commit
3d9dd862af
2 files changed
+60
No files matched your search
@@ -28,6 +28,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace Cevo {
|
||||
|
||||
// Equivalent of Global.pas (just app-wide constants; CevoNetworkPort/
|
||||
@@ -44,4 +46,18 @@ constexpr int CevoVersionBugFix = 0;
|
||||
constexpr int CevoVersion = ((CevoVersionMajor & 0xFF) << 16) | ((CevoVersionMinor & 0xFF) << 8) |
|
||||
(CevoVersionBugFix & 0xFF);
|
||||
|
||||
// Equivalent of ScreenTools.pas's `FullScreen` global (not a full port of
|
||||
// that ~1900-line unit - just this one cross-cutting runtime flag, needed
|
||||
// by Back.pas/Start.pas to decide fullscreen vs. windowed layout).
|
||||
extern bool fullScreen;
|
||||
|
||||
// Minimal equivalent of Directories.pas's GetGraphicsDir() (that whole unit
|
||||
// isn't ported - this is just the one helper needed so far). Resolves to
|
||||
// CEVO_RESOURCE_DIR/Graphics (see the top-level CMakeLists.txt).
|
||||
QString getGraphicsDir();
|
||||
|
||||
// ScreenTools.pas's PngExt/JpgExt constants.
|
||||
constexpr const char *PngExt = ".png";
|
||||
constexpr const char *JpgExt = ".jpg";
|
||||
|
||||
} // namespace Cevo
|
||||
Reference in new issue
Block a user