mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Fix File Operating functions in Windows Specific Version
This commit is contained in:
parent
23553b1330
commit
dcd2d333b8
|
@ -1,7 +1,7 @@
|
||||||
#include "MiniEngine.h"
|
#include "MiniEngine.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#include "windows.h"
|
#include <windows.h>
|
||||||
|
|
||||||
//GBK编码转换到UTF8编码
|
//GBK编码转换到UTF8编码
|
||||||
int _GBKToUTF8(unsigned char * lpGBKStr,unsigned char * lpUTF8Str,int nUTF8StrLen)
|
int _GBKToUTF8(unsigned char * lpGBKStr,unsigned char * lpUTF8Str,int nUTF8StrLen)
|
||||||
|
@ -118,3 +118,25 @@ string GBKToUTF8(string GBKString)
|
||||||
delete[] utf8str;
|
delete[] utf8str;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
bool isexist(std::string Path)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool canread(std::string Path)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool canwrite(std::string Path)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool canexecute(std::string Path)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif /// End of _MSC_VER
|
||||||
|
|
Loading…
Reference in New Issue
Block a user