mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
Anotehr WinXP fix
This commit is contained in:
parent
dc45ecbe6d
commit
487de16200
|
@ -287,7 +287,7 @@ void CUpdater::WinXpRestart()
|
||||||
if(!bhFile)
|
if(!bhFile)
|
||||||
return;
|
return;
|
||||||
char bBuf[512];
|
char bBuf[512];
|
||||||
str_format(bBuf, sizeof(bBuf), ":_R\r\ndel \"DDNet.exe\"\r\nif exist \"DDNet.exe\" goto _R\r\n:_T\r\nrename \"DDNet.tmp\" \"DDNet.exe\"\r\nif not exist \"DDNet.exe\" goto _T\r\nstart DDNet.exe\r\ndel \"du.bat\"\r\n");
|
str_format(bBuf, sizeof(bBuf), ":_R\r\ndel \"DDNet.exe\"\r\nif exist \"DDNet.exe\" goto _R\r\n:_T\r\nrename \"update/DDNet.tmp\" \"DDNet.exe\"\r\nif not exist \"DDNet.exe\" goto _T\r\nstart DDNet.exe\r\ndel \"du.bat\"\r\n");
|
||||||
io_write(bhFile, bBuf, str_length(bBuf));
|
io_write(bhFile, bBuf, str_length(bBuf));
|
||||||
io_close(bhFile);
|
io_close(bhFile);
|
||||||
shell_execute(aBuf);
|
shell_execute(aBuf);
|
||||||
|
|
Loading…
Reference in a new issue