|
@@ -2,13 +2,11 @@ using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Diagnostics;
|
|
using System.Media;
|
|
using System.Media;
|
|
-using System.Windows.Forms;
|
|
|
|
using Microsoft.VisualBasic;
|
|
using Microsoft.VisualBasic;
|
|
using MinorShift.Emuera.GameData.Expression;
|
|
using MinorShift.Emuera.GameData.Expression;
|
|
using MinorShift.Emuera.GameData.Variable;
|
|
using MinorShift.Emuera.GameData.Variable;
|
|
using MinorShift.Emuera.GameProc.Function;
|
|
using MinorShift.Emuera.GameProc.Function;
|
|
using MinorShift.Emuera.Sub;
|
|
using MinorShift.Emuera.Sub;
|
|
-using MinorShift._Library;
|
|
|
|
using NTERA.Interop;
|
|
using NTERA.Interop;
|
|
|
|
|
|
namespace MinorShift.Emuera.GameProc
|
|
namespace MinorShift.Emuera.GameProc
|
|
@@ -58,17 +56,16 @@ namespace MinorShift.Emuera.GameProc
|
|
string file = erbFiles[i].Value;
|
|
string file = erbFiles[i].Value;
|
|
#if DEBUG
|
|
#if DEBUG
|
|
if (displayReport)
|
|
if (displayReport)
|
|
- output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedTicks.ToString("D4") + "ms:" + filename + " is being loaded...");
|
|
|
|
|
|
+ output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedMilliseconds.ToString("D4") + "ms:" + filename + " is being loaded...");
|
|
#else
|
|
#else
|
|
if (displayReport)
|
|
if (displayReport)
|
|
output.PrintSystemLine("Loading " + filename + "...");
|
|
output.PrintSystemLine("Loading " + filename + "...");
|
|
#endif
|
|
#endif
|
|
- Application.DoEvents();
|
|
|
|
loadErb(file, filename, isOnlyEvent);
|
|
loadErb(file, filename, isOnlyEvent);
|
|
}
|
|
}
|
|
ParserMediator.FlushWarningList();
|
|
ParserMediator.FlushWarningList();
|
|
#if DEBUG
|
|
#if DEBUG
|
|
- output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedTicks.ToString("D4") + "ms:");
|
|
|
|
|
|
+ output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedMilliseconds.ToString("D4") + "ms:");
|
|
#endif
|
|
#endif
|
|
if (displayReport)
|
|
if (displayReport)
|
|
output.PrintSystemLine("Building a list of user-defined functions...");
|
|
output.PrintSystemLine("Building a list of user-defined functions...");
|
|
@@ -76,7 +73,7 @@ namespace MinorShift.Emuera.GameProc
|
|
ParserMediator.FlushWarningList();
|
|
ParserMediator.FlushWarningList();
|
|
labelDic.Initialized = true;
|
|
labelDic.Initialized = true;
|
|
#if DEBUG
|
|
#if DEBUG
|
|
- output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedTicks.ToString("D4") + "ms:");
|
|
|
|
|
|
+ output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedMilliseconds.ToString("D4") + "ms:");
|
|
#endif
|
|
#endif
|
|
if (displayReport)
|
|
if (displayReport)
|
|
output.PrintSystemLine("Script syntax checking...");
|
|
output.PrintSystemLine("Script syntax checking...");
|
|
@@ -84,7 +81,7 @@ namespace MinorShift.Emuera.GameProc
|
|
ParserMediator.FlushWarningList();
|
|
ParserMediator.FlushWarningList();
|
|
|
|
|
|
#if DEBUG
|
|
#if DEBUG
|
|
- output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedTicks.ToString("D4") + "ms:");
|
|
|
|
|
|
+ output.PrintSystemLine("Elapsed time: " + stopwatch.ElapsedMilliseconds.ToString("D4") + "ms:");
|
|
#endif
|
|
#endif
|
|
if (displayReport)
|
|
if (displayReport)
|
|
output.PrintSystemLine("Load is complete");
|
|
output.PrintSystemLine("Load is complete");
|
|
@@ -125,7 +122,7 @@ namespace MinorShift.Emuera.GameProc
|
|
fname = fpath;
|
|
fname = fpath;
|
|
if (Program.AnalysisMode)
|
|
if (Program.AnalysisMode)
|
|
output.PrintSystemLine("Loading " + fname + "...");
|
|
output.PrintSystemLine("Loading " + fname + "...");
|
|
- Application.DoEvents();
|
|
|
|
|
|
+
|
|
loadErb(fpath, fname, isOnlyEvent);
|
|
loadErb(fpath, fname, isOnlyEvent);
|
|
}
|
|
}
|
|
if (Program.AnalysisMode)
|
|
if (Program.AnalysisMode)
|
|
@@ -834,7 +831,6 @@ namespace MinorShift.Emuera.GameProc
|
|
{//ここでエラーを捕まえることは本来はないはず。ExeEE相当。
|
|
{//ここでエラーを捕まえることは本来はないはず。ExeEE相当。
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- Application.DoEvents();
|
|
|
|
string filename = label.Position.Filename.ToUpper();
|
|
string filename = label.Position.Filename.ToUpper();
|
|
setArgument(label);
|
|
setArgument(label);
|
|
nestCheck(label);
|
|
nestCheck(label);
|