mirror of
https://github.com/encounter/aurora.git
synced 2025-08-08 21:29:07 +00:00
Windows fix
This commit is contained in:
parent
382abc6455
commit
62be64f1aa
@ -318,7 +318,8 @@ static inline int64_t FTell(FILE* fp)
|
|||||||
static inline int Rename(const SystemChar* oldpath, const SystemChar* newpath)
|
static inline int Rename(const SystemChar* oldpath, const SystemChar* newpath)
|
||||||
{
|
{
|
||||||
#if CARD_UCS2
|
#if CARD_UCS2
|
||||||
return _wrename(oldpath, newpath);
|
//return _wrename(oldpath, newpath);
|
||||||
|
return ReplaceFileW(newpath, oldpath, nullptr, 0, nullptr, nullptr) == 0;
|
||||||
#else
|
#else
|
||||||
return rename(oldpath, newpath);
|
return rename(oldpath, newpath);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user