mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
Try to fix du.bat
This commit is contained in:
parent
c683703df0
commit
dc45ecbe6d
|
@ -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\nrename \"DDNet.tmp\" \"DDNet.exe\"\r\n:_T\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 \"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