Commit e8ce12ff authored by nanahira's avatar nanahira

fix

parent 477a71e1
...@@ -79,18 +79,8 @@ inline FILE* mywfopen(const wchar_t* filename, const char* mode) { ...@@ -79,18 +79,8 @@ inline FILE* mywfopen(const wchar_t* filename, const char* mode) {
return fp; return fp;
} }
#ifndef YGOPRO_SERVER_MODE #if !defined(YGOPRO_SERVER_MODE) || defined(SERVER_ZIP_SUPPORT)
#include <irrlicht.h> #include <irrlicht.h>
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#endif //YGOPRO_SERVER_MODE
#ifdef SERVER_ZIP_SUPPORT
#include <irrlicht.h>
using namespace io;
#endif #endif
extern unsigned short PRO_VERSION; extern unsigned short PRO_VERSION;
......
...@@ -91,6 +91,14 @@ bool IsExtension(const wchar_t* filename, const wchar_t* extension) { ...@@ -91,6 +91,14 @@ bool IsExtension(const wchar_t* filename, const wchar_t* extension) {
return !mywcsncasecmp(filename + (flen - elen), extension, elen); return !mywcsncasecmp(filename + (flen - elen), extension, elen);
} }
bool IsExtension(const char* filename, const char* extension) {
auto flen = std::strlen(filename);
auto elen = std::strlen(extension);
if (!elen || flen < elen)
return false;
return !mystrncasecmp(filename + (flen - elen), extension, elen);
}
#ifdef YGOPRO_SERVER_MODE #ifdef YGOPRO_SERVER_MODE
unsigned short server_port; unsigned short server_port;
unsigned short replay_mode; unsigned short replay_mode;
......
Subproject commit cefcf2669c49116981cc586d284afaa027673ca8 Subproject commit 39de78189126c70aa25f927d1033599f4b501ae7
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment