forked from markus/S_New4
füge ifedf bei festlegen der updater links hinzu
This commit is contained in:
parent
631a18bb16
commit
b04bde2ed6
@ -40,16 +40,33 @@ enum Modus {
|
|||||||
struct Settings {
|
struct Settings {
|
||||||
Settings() {}
|
Settings() {}
|
||||||
Settings(std::string name) : name(name) {}
|
Settings(std::string name) : name(name) {}
|
||||||
|
|
||||||
const std::string programName = "S_New4";
|
const std::string programName = "S_New4";
|
||||||
#ifdef __linux
|
|
||||||
const std::string VersionFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=Version-LINx86.txt";
|
// Wenn das Betriebsystem x86 ist:
|
||||||
const std::string ProgrammFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=S_New4-LINx86";
|
#if defined (_X86_) || defined (__amd64__) || defined (_M_IX86)
|
||||||
#endif
|
// Wenn das Betriebsystem LINUX ist und 64 Bit ist:
|
||||||
#ifdef _WIN32
|
#if defined (__linux) && ( defined (_LP64) || defined (__LP64__))
|
||||||
const std::string VersionFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=Version-WINx86.txt";
|
const std::string VersionFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=Version-LINx86.txt";
|
||||||
const std::string ProgrammFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=S_New4-WINx86.exe";
|
const std::string ProgrammFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=S_New4-LINx86";
|
||||||
|
#else
|
||||||
|
//Wenn das Betriebsystem Windows ist und 64 Bit ist
|
||||||
|
#if defined (_WIN64)
|
||||||
|
const std::string VersionFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=Version-WINx86.txt";
|
||||||
|
const std::string ProgrammFileUrl = "https://cloud.obermui.de/s/H47Xoqy2czfJzYp/download?path=%2F&files=S_New4-WINx86.exe";
|
||||||
|
#else
|
||||||
|
//Ungültiges Betriebsystem => Error
|
||||||
|
#error Kein Windows oder Linux 64 Bit System
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//Nicht x86 Architekture
|
||||||
|
#else
|
||||||
|
#error Falsche Architektur: Der Updater Fuktion wird nicht Funktionieren!
|
||||||
|
#error Remove this 2 ErrorLines in the Code to use S_New4 without an Updater ( If your System is Linux or Windows )
|
||||||
|
const std::string VersionFileUrl = "";
|
||||||
|
const std::string ProgrammFileUrl = "";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string name,
|
std::string name,
|
||||||
accountFilePath = "",
|
accountFilePath = "",
|
||||||
accountNumberPath= "",
|
accountNumberPath= "",
|
||||||
|
Loading…
Reference in New Issue
Block a user