mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
Use the same unlink/rename on linux on OSX too
This means you won't see the terminal appear with a 5 second countdown on OSX anymore
This commit is contained in:
parent
eba6ddd138
commit
4be290d9d4
@ -1310,12 +1310,7 @@ ReturnCode Updater_Start(void) {
|
|||||||
}
|
}
|
||||||
#elif defined CC_BUILD_WEB || defined CC_BUILD_ANDROID
|
#elif defined CC_BUILD_WEB || defined CC_BUILD_ANDROID
|
||||||
ReturnCode Updater_Start(void) { return ERR_NOT_SUPPORTED; }
|
ReturnCode Updater_Start(void) { return ERR_NOT_SUPPORTED; }
|
||||||
#elif defined CC_BUILD_OSX
|
#elif defined CC_BUILD_POSIX
|
||||||
ReturnCode Updater_Start(void) {
|
|
||||||
static const char* args[5] = { "/usr/bin/open", "-a", "Terminal", "./update.sh", NULL };
|
|
||||||
return Process_RawStart("/usr/bin/open", args);
|
|
||||||
}
|
|
||||||
#elif defined CC_BUILD_UNIX
|
|
||||||
ReturnCode Updater_Start(void) {
|
ReturnCode Updater_Start(void) {
|
||||||
char path[NATIVE_STR_LEN];
|
char path[NATIVE_STR_LEN];
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
@ -32,7 +32,6 @@ struct HUDScreen {
|
|||||||
struct FontDesc playerFont;
|
struct FontDesc playerFont;
|
||||||
bool showingList, wasShowingList;
|
bool showingList, wasShowingList;
|
||||||
/* chat state */
|
/* chat state */
|
||||||
int inputOldHeight;
|
|
||||||
float chatAcc;
|
float chatAcc;
|
||||||
bool suppressNextPress;
|
bool suppressNextPress;
|
||||||
int chatIndex;
|
int chatIndex;
|
||||||
@ -1193,7 +1192,6 @@ static const struct ScreenVTABLE HUDScreen_VTABLE = {
|
|||||||
void HUDScreen_Show(void) {
|
void HUDScreen_Show(void) {
|
||||||
struct HUDScreen* s = &HUDScreen_Instance;
|
struct HUDScreen* s = &HUDScreen_Instance;
|
||||||
s->wasShowingList = false;
|
s->wasShowingList = false;
|
||||||
s->inputOldHeight = -1;
|
|
||||||
s->lastDownloadStatus = Int32_MinValue;
|
s->lastDownloadStatus = Int32_MinValue;
|
||||||
|
|
||||||
s->VTABLE = &HUDScreen_VTABLE;
|
s->VTABLE = &HUDScreen_VTABLE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user