Commit 1c90567e authored by nanahira's avatar nanahira

missing

parent 3a9dec11
...@@ -949,7 +949,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) { ...@@ -949,7 +949,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) {
char fname[780]; char fname[780];
BufferIO::EncodeUTF8(fdataw.cFileName, fname); BufferIO::EncodeUTF8(fdataw.cFileName, fname);
sprintf(fpath, "./expansions/%s", fname); sprintf(fpath, "./expansions/%s", fname);
byte* buffer = ScriptReaderExDirectry(fpath, script_name, slen); buffer = ScriptReaderExDirectry(fpath, script_name, slen);
if(buffer) if(buffer)
return buffer; return buffer;
} }
...@@ -965,7 +965,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) { ...@@ -965,7 +965,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) {
continue; continue;
char filepath[1000]; char filepath[1000];
sprintf(filepath, "./expansions/%s/", dirp->d_name); sprintf(filepath, "./expansions/%s/", dirp->d_name);
byte* buffer = ScriptReaderExDirectry(filepath, script_name, slen); buffer = ScriptReaderExDirectry(filepath, script_name, slen);
if(buffer) if(buffer)
return buffer; return buffer;
} }
......
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