-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (30 loc) · 739 Bytes
/
Copy pathmain.cpp
File metadata and controls
43 lines (30 loc) · 739 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
#include "base.h"
#include "console.h"
#include "gamedata.h"
#include "status.h"
#include "actions.h"
#include "startup.h"
int main(int argc, char* argv[])
{
CoreData core;
startup::parse_arguments(core, argc, argv);
console.initialize(core.language);
startup::run_intro();
startup::initialize(core);
startup::show_splashscreen(core);
if (game_data::load(core))
console.set_language(core.language);
else
startup::show_start_message(core);
while (true)
{
status::show_room_status(core);
if (actions::progress_animates(core) && !actions::perform_command(core))
break;
}
game_data::save(core);
console.main().wait_for_key(true, core.language);
console.main().clear();
console.release();
return 0;
}