mirror of
https://github.com/AxioDL/kabufuda.git
synced 2025-05-13 10:51:20 +00:00
Windows fix
This commit is contained in:
parent
2401875b9a
commit
3cf7aee617
@ -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