mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Winapi MoveFile allows moving the client.
This commit is contained in:
parent
f7c606c649
commit
b1044647f9
|
@ -1729,9 +1729,14 @@ int fs_remove(const char *filename)
|
|||
}
|
||||
|
||||
int fs_rename(const char *oldname, const char *newname)
|
||||
{
|
||||
{
|
||||
#if defined(CONF_FAMILY_WINDOWS)
|
||||
if(MoveFile(oldname, newname) != 0)
|
||||
return 1;
|
||||
#else
|
||||
if(rename(oldname, newname) != 0)
|
||||
return 1;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue