mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -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
|
||||
ReturnCode Updater_Start(void) { return ERR_NOT_SUPPORTED; }
|
||||
#elif defined CC_BUILD_OSX
|
||||
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
|
||||
#elif defined CC_BUILD_POSIX
|
||||
ReturnCode Updater_Start(void) {
|
||||
char path[NATIVE_STR_LEN];
|
||||
int len = 0;
|
||||
|
@ -32,7 +32,6 @@ struct HUDScreen {
|
||||
struct FontDesc playerFont;
|
||||
bool showingList, wasShowingList;
|
||||
/* chat state */
|
||||
int inputOldHeight;
|
||||
float chatAcc;
|
||||
bool suppressNextPress;
|
||||
int chatIndex;
|
||||
@ -1193,7 +1192,6 @@ static const struct ScreenVTABLE HUDScreen_VTABLE = {
|
||||
void HUDScreen_Show(void) {
|
||||
struct HUDScreen* s = &HUDScreen_Instance;
|
||||
s->wasShowingList = false;
|
||||
s->inputOldHeight = -1;
|
||||
s->lastDownloadStatus = Int32_MinValue;
|
||||
|
||||
s->VTABLE = &HUDScreen_VTABLE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user