mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Replace #ifdef WIN32 by #ifdef OS_WINDOWS in GLideNHQ
This commit is contained in:
parent
4e36fa07a2
commit
fb6d945953
|
@ -228,7 +228,7 @@ TxCache::save(const wchar_t *path, const wchar_t *filename, int config)
|
||||||
osal_mkdirp(path);
|
osal_mkdirp(path);
|
||||||
|
|
||||||
/* Ugly hack to enable fopen/gzopen in Win9x */
|
/* Ugly hack to enable fopen/gzopen in Win9x */
|
||||||
#ifdef WIN32
|
#ifdef OS_WINDOWS
|
||||||
wchar_t curpath[MAX_PATH];
|
wchar_t curpath[MAX_PATH];
|
||||||
GETCWD(MAX_PATH, curpath);
|
GETCWD(MAX_PATH, curpath);
|
||||||
CHDIR(path);
|
CHDIR(path);
|
||||||
|
@ -306,7 +306,7 @@ TxCache::load(const wchar_t *path, const wchar_t *filename, int config)
|
||||||
/* find it on disk */
|
/* find it on disk */
|
||||||
char cbuf[MAX_PATH];
|
char cbuf[MAX_PATH];
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef OS_WINDOWS
|
||||||
wchar_t curpath[MAX_PATH];
|
wchar_t curpath[MAX_PATH];
|
||||||
GETCWD(MAX_PATH, curpath);
|
GETCWD(MAX_PATH, curpath);
|
||||||
CHDIR(path);
|
CHDIR(path);
|
||||||
|
|
|
@ -608,7 +608,7 @@ TxFilter::dmptx(uint8 *src, int width, int height, int rowStridePixel, uint16 gf
|
||||||
tmpbuf.append(wbuf);
|
tmpbuf.append(wbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef OS_WINDOWS
|
||||||
if ((fp = _wfopen(tmpbuf.c_str(), wst("wb"))) != nullptr) {
|
if ((fp = _wfopen(tmpbuf.c_str(), wst("wb"))) != nullptr) {
|
||||||
#else
|
#else
|
||||||
char cbuf[MAX_PATH];
|
char cbuf[MAX_PATH];
|
||||||
|
|
|
@ -178,7 +178,7 @@ TxHiResCache::loadHiResTextures(const wchar_t * dir_path, boolean replace)
|
||||||
*
|
*
|
||||||
* I opted to use chdir in order to use fopen() for windows 9x.
|
* I opted to use chdir in order to use fopen() for windows 9x.
|
||||||
*/
|
*/
|
||||||
#ifdef WIN32
|
#ifdef OS_WINDOWS
|
||||||
wchar_t curpath[MAX_PATH];
|
wchar_t curpath[MAX_PATH];
|
||||||
GETCWD(MAX_PATH, curpath);
|
GETCWD(MAX_PATH, curpath);
|
||||||
CHDIR(dir_path);
|
CHDIR(dir_path);
|
||||||
|
@ -244,7 +244,7 @@ TxHiResCache::loadHiResTextures(const wchar_t * dir_path, boolean replace)
|
||||||
/* XXX case sensitivity fiasco!
|
/* XXX case sensitivity fiasco!
|
||||||
* files must use _a, _rgb, _all, _allciByRGBA, _ciByRGBA, _ci
|
* files must use _a, _rgb, _all, _allciByRGBA, _ciByRGBA, _ci
|
||||||
* and file extensions must be in lower case letters! */
|
* and file extensions must be in lower case letters! */
|
||||||
#ifdef WIN32
|
#ifdef OS_WINDOWS
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
for (i = 0; i < strlen(fname); i++) fname[i] = tolower(fname[i]);
|
for (i = 0; i < strlen(fname); i++) fname[i] = tolower(fname[i]);
|
||||||
|
@ -259,7 +259,7 @@ TxHiResCache::loadHiResTextures(const wchar_t * dir_path, boolean replace)
|
||||||
/* XXX case sensitivity fiasco!
|
/* XXX case sensitivity fiasco!
|
||||||
* files must use _a, _rgb, _all, _allciByRGBA, _ciByRGBA, _ci
|
* files must use _a, _rgb, _all, _allciByRGBA, _ciByRGBA, _ci
|
||||||
* and file extensions must be in lower case letters! */
|
* and file extensions must be in lower case letters! */
|
||||||
#ifdef WIN32
|
#ifdef OS_WINDOWS
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
for (i = 0; i < strlen(fname); i++) fname[i] = tolower(fname[i]);
|
for (i = 0; i < strlen(fname); i++) fname[i] = tolower(fname[i]);
|
||||||
|
@ -461,7 +461,7 @@ TxHiResCache::loadHiResTextures(const wchar_t * dir_path, boolean replace)
|
||||||
*/
|
*/
|
||||||
if (pfname == strstr(fname, "_all.png") ||
|
if (pfname == strstr(fname, "_all.png") ||
|
||||||
pfname == strstr(fname, "_all.dds") ||
|
pfname == strstr(fname, "_all.dds") ||
|
||||||
#ifdef WIN32
|
#ifdef OS_WINDOWS
|
||||||
pfname == strstr(fname, "_allcibyrgba.png") ||
|
pfname == strstr(fname, "_allcibyrgba.png") ||
|
||||||
pfname == strstr(fname, "_allcibyrgba.dds") ||
|
pfname == strstr(fname, "_allcibyrgba.dds") ||
|
||||||
pfname == strstr(fname, "_cibyrgba.png") ||
|
pfname == strstr(fname, "_cibyrgba.png") ||
|
||||||
|
|
Loading…
Reference in New Issue
Block a user