2015-06-30 00:07:12 +07:00
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace FalloutClient {
|
|
|
|
|
static class Program {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The main entry point for the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main(string[] args) {
|
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
|
|
2019-04-04 10:29:41 +08:00
|
|
|
if (args.Length == 1 && args[0] == "-debugedit") {
|
2015-06-30 00:07:12 +07:00
|
|
|
Application.Run(new DebugEditor(new EditorConnection()));
|
|
|
|
|
} else {
|
2020-12-14 15:42:45 +08:00
|
|
|
MessageBox.Show("The debug editor can only be run from the game.\n" +
|
|
|
|
|
"Use the key assigned to the DebugEditorKey option in ddraw.ini to run the debugger.",
|
2019-04-05 13:03:08 +08:00
|
|
|
"sfall Debug Editor", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
2015-06-30 00:07:12 +07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum DataTypeSend {
|
2019-04-04 10:29:41 +08:00
|
|
|
SetGlobal = 0,
|
|
|
|
|
SetMapVar = 1,
|
|
|
|
|
RetrieveCritter = 2,
|
|
|
|
|
SetCritter = 3,
|
|
|
|
|
SetSGlobal = 4,
|
|
|
|
|
GetArray = 9,
|
|
|
|
|
SetArray = 10,
|
2019-06-15 10:09:50 +08:00
|
|
|
GetLocal = 11,
|
|
|
|
|
SetLocal = 12,
|
2022-01-17 09:48:22 +08:00
|
|
|
Exit = 254,
|
|
|
|
|
RedrawGame = 255
|
2019-04-04 10:29:41 +08:00
|
|
|
}
|
2015-06-30 00:07:12 +07:00
|
|
|
}
|