Changed TCHAR to regular char type to fix build error in lua-engine for windows builds.
This commit is contained in:
parent
3faacbb308
commit
eb1393367e
|
@ -546,10 +546,10 @@ static int emu_message(lua_State *L) {
|
||||||
// Returns the path of fceux.exe as a string.
|
// Returns the path of fceux.exe as a string.
|
||||||
static int emu_getdir(lua_State *L) {
|
static int emu_getdir(lua_State *L) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
TCHAR fullPath[2048];
|
char fullPath[2048];
|
||||||
TCHAR driveLetter[3];
|
char driveLetter[3];
|
||||||
TCHAR directory[2048];
|
char directory[2048];
|
||||||
TCHAR finalPath[2048];
|
char finalPath[2048];
|
||||||
|
|
||||||
GetModuleFileName(NULL, fullPath, 2048);
|
GetModuleFileName(NULL, fullPath, 2048);
|
||||||
_splitpath(fullPath, driveLetter, directory, NULL, NULL);
|
_splitpath(fullPath, driveLetter, directory, NULL, NULL);
|
||||||
|
|
Loading…
Reference in New Issue