mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Don't even show the Direct3D9 buttons or 'direct3d9 is recommended' on macOS/linux in launcher updates menu
This commit is contained in:
parent
970e8bbda7
commit
fee0e5f8f7
@ -1513,18 +1513,22 @@ static void UpdatesScreen_Init(struct LScreen* s_) {
|
|||||||
LLine_Init(s_, &s->seps[0], 320);
|
LLine_Init(s_, &s->seps[0], 320);
|
||||||
LLine_Init(s_, &s->seps[1], 320);
|
LLine_Init(s_, &s->seps[1], 320);
|
||||||
|
|
||||||
LLabel_Init(s_, &s->lblRel, "Latest release: Checking..");
|
LLabel_Init(s_, &s->lblRel, "Latest release: Checking..");
|
||||||
LButton_Init(s_, &s->btnRel[0], 130, 35, "Direct3D 9");
|
|
||||||
LButton_Init(s_, &s->btnRel[1], 130, 35, "OpenGL");
|
|
||||||
|
|
||||||
LLabel_Init(s_, &s->lblDev, "Latest dev build: Checking..");
|
LLabel_Init(s_, &s->lblDev, "Latest dev build: Checking..");
|
||||||
LButton_Init(s_, &s->btnDev[0], 130, 35, "Direct3D 9");
|
|
||||||
LButton_Init(s_, &s->btnDev[1], 130, 35, "OpenGL");
|
|
||||||
|
|
||||||
LLabel_Init(s_, &s->lblInfo, "&eDirect3D 9 is recommended for Windows");
|
|
||||||
LLabel_Init(s_, &s->lblStatus, "");
|
LLabel_Init(s_, &s->lblStatus, "");
|
||||||
LButton_Init(s_, &s->btnBack, 80, 35, "Back");
|
LButton_Init(s_, &s->btnBack, 80, 35, "Back");
|
||||||
|
|
||||||
|
if (Updater_D3D9) {
|
||||||
|
LButton_Init(s_, &s->btnRel[0], 130, 35, "Direct3D 9");
|
||||||
|
LButton_Init(s_, &s->btnDev[0], 130, 35, "Direct3D 9");
|
||||||
|
LLabel_Init(s_, &s->lblInfo, "&eDirect3D 9 is recommended");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Updater_OGL) {
|
||||||
|
LButton_Init(s_, &s->btnRel[1], 130, 35, "OpenGL");
|
||||||
|
LButton_Init(s_, &s->btnDev[1], 130, 35, "OpenGL");
|
||||||
|
}
|
||||||
|
|
||||||
s->btnRel[0].OnClick = UpdatesScreen_RelD3D9;
|
s->btnRel[0].OnClick = UpdatesScreen_RelD3D9;
|
||||||
s->btnRel[1].OnClick = UpdatesScreen_RelOpenGL;
|
s->btnRel[1].OnClick = UpdatesScreen_RelOpenGL;
|
||||||
s->btnDev[0].OnClick = UpdatesScreen_DevD3D9;
|
s->btnDev[0].OnClick = UpdatesScreen_DevD3D9;
|
||||||
|
@ -1329,34 +1329,27 @@ cc_result Updater_GetBuildTime(TimeMS* time) { return ERR_NOT_SUPPORTED; }
|
|||||||
#elif defined CC_BUILD_POSIX
|
#elif defined CC_BUILD_POSIX
|
||||||
cc_bool Updater_Clean(void) { return true; }
|
cc_bool Updater_Clean(void) { return true; }
|
||||||
|
|
||||||
|
const char* Updater_D3D9 = NULL;
|
||||||
#if defined CC_BUILD_LINUX
|
#if defined CC_BUILD_LINUX
|
||||||
#if __x86_64__
|
#if __x86_64__
|
||||||
const char* Updater_D3D9 = "ClassiCube";
|
const char* Updater_OGL = "ClassiCube";
|
||||||
const char* Updater_OGL = "ClassiCube";
|
|
||||||
#elif __i386__
|
#elif __i386__
|
||||||
const char* Updater_D3D9 = "ClassiCube.32";
|
const char* Updater_OGL = "ClassiCube.32";
|
||||||
const char* Updater_OGL = "ClassiCube.32";
|
|
||||||
#elif CC_BUILD_RPI
|
#elif CC_BUILD_RPI
|
||||||
const char* Updater_D3D9 = "ClassiCube.rpi";
|
const char* Updater_OGL = "ClassiCube.rpi";
|
||||||
const char* Updater_OGL = "ClassiCube.rpi";
|
|
||||||
#else
|
#else
|
||||||
const char* Updater_D3D9 = "ClassiCube.unknown";
|
const char* Updater_OGL = "ClassiCube.unknown";
|
||||||
const char* Updater_OGL = "ClassiCube.unknown";
|
|
||||||
#endif
|
#endif
|
||||||
#elif defined CC_BUILD_OSX
|
#elif defined CC_BUILD_OSX
|
||||||
#if __x86_64__
|
#if __x86_64__
|
||||||
const char* Updater_D3D9 = "ClassiCube.64.osx";
|
const char* Updater_OGL = "ClassiCube.64.osx";
|
||||||
const char* Updater_OGL = "ClassiCube.64.osx";
|
|
||||||
#elif __i386__
|
#elif __i386__
|
||||||
const char* Updater_D3D9 = "ClassiCube.osx";
|
const char* Updater_OGL = "ClassiCube.osx";
|
||||||
const char* Updater_OGL = "ClassiCube.osx";
|
|
||||||
#else
|
#else
|
||||||
const char* Updater_D3D9 = "ClassiCube.unknown";
|
const char* Updater_OGL = "ClassiCube.unknown";
|
||||||
const char* Updater_OGL = "ClassiCube.unknown";
|
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
const char* Updater_D3D9 = "ClassiCube.unknown";
|
const char* Updater_OGL = "ClassiCube.unknown";
|
||||||
const char* Updater_OGL = "ClassiCube.unknown";
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cc_result Updater_Start(void) {
|
cc_result Updater_Start(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user