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:
UnknownShadow200 2019-09-05 12:31:05 +10:00
parent eba6ddd138
commit 4be290d9d4
2 changed files with 1 additions and 8 deletions

View File

@ -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;

View File

@ -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;