mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix comlilation on Linux.
This commit is contained in:
parent
cc63ed1764
commit
9491633b5f
|
@ -17,8 +17,9 @@ void LOG(u16 type, const char * format, ...) {
|
||||||
#ifdef OS_WINDOWS
|
#ifdef OS_WINDOWS
|
||||||
FILE *dumpFile = _wfopen(logPath, wst("a+"));
|
FILE *dumpFile = _wfopen(logPath, wst("a+"));
|
||||||
#else
|
#else
|
||||||
char cbuf[MAX_PATH];
|
constexpr size_t bufSize = PLUGIN_PATH_SIZE * 6;
|
||||||
wcstombs(cbuf, logPath, MAX_PATH);
|
char cbuf[bufSize];
|
||||||
|
wcstombs(cbuf, logPath, bufSize);
|
||||||
FILE *dumpFile = fopen(cbuf, "a+");
|
FILE *dumpFile = fopen(cbuf, "a+");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user