-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
47 lines (31 loc) · 947 Bytes
/
Main.cpp
File metadata and controls
47 lines (31 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "FxScript.hpp"
#include <assert.h>
#include <cstdio>
#include <string>
int main()
{
FxConfigScript script;
script.LoadFile("Main.fxS");
script.DefineExternalVar("playerid", "emd22", FxScriptValue(FxScriptValue::INT, 1020));
FxScriptVM vm;
script.Execute(vm);
std::string command = "";
printf("\nFoxtrot Script\nVersion %d.%d.%d\n", FX_SCRIPT_VERSION_MAJOR, FX_SCRIPT_VERSION_MINOR, FX_SCRIPT_VERSION_PATCH);
// while (true) {
// printf(" -> ");
// fflush(stdout);
// std::getline(std::cin, command);
// if (command == "quit") {
// break;
// }
// if (!command.ends_with(';')) {
// command += ';';
// }
// //printf("Executing command {%s}\n", command.c_str());
// script.ExecuteUserCommand(command.c_str(), interpreter);
// }
#ifdef _WIN32
system("pause");
#endif
return 0;
}