Commit 4ba2a90f authored by DailyShana's avatar DailyShana

Revert "unicode script filename in windows"

This reverts commit dd955dba.
parent dd955dba
......@@ -13,7 +13,6 @@
#include "effect.h"
#include "field.h"
#include "interpreter.h"
#include "../gframe/bufferio.h"
#include <set>
script_reader sreader = default_script_reader;
......@@ -42,13 +41,7 @@ uint32 handle_message(void* pduel, uint32 msg_type) {
}
byte* default_script_reader(const char* script_name, int* slen) {
FILE *fp;
#ifdef _WIN32
wchar_t fname[256];
BufferIO::DecodeUTF8(script_name, fname);
fp = _wfopen(fname, L"rb");
#else
fp = fopen(script_name, "rb");
#endif
if (!fp)
return 0;
fseek(fp, 0, SEEK_END);
......
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