Commit eaf2e720 authored by DailyShana's avatar DailyShana

increse script buffer size for puzzle mode

parent df0160ed
...@@ -11,7 +11,7 @@ long SingleMode::pduel = 0; ...@@ -11,7 +11,7 @@ long SingleMode::pduel = 0;
bool SingleMode::is_closing = false; bool SingleMode::is_closing = false;
bool SingleMode::is_continuing = false; bool SingleMode::is_continuing = false;
byte buffer[0x10000]; static byte buffer[0x20000];
bool SingleMode::StartPlay() { bool SingleMode::StartPlay() {
Thread::NewThread(SinglePlayThread, 0); Thread::NewThread(SinglePlayThread, 0);
...@@ -813,7 +813,7 @@ byte* SingleMode::ScriptReader(const char* script_name, int* slen) { ...@@ -813,7 +813,7 @@ byte* SingleMode::ScriptReader(const char* script_name, int* slen) {
return 0; return 0;
fseek(fp, 0, SEEK_END); fseek(fp, 0, SEEK_END);
unsigned int len = ftell(fp); unsigned int len = ftell(fp);
if(len > 0x10000) { if(len > sizeof(buffer)) {
fclose(fp); fclose(fp);
return 0; return 0;
} }
......
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