-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (24 loc) · 673 Bytes
/
main.cpp
File metadata and controls
31 lines (24 loc) · 673 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
#include <fstream>
#include <allegro.h>
#include "winhack.h"
#include "siam/inc/game.hpp"
#include "siam/inc/ui/main/maincliui.hpp"
#include "siam/inc/ui/main/mainallegroui.hpp"
int main( int argc, char* argv[] ) {
Siam::UI::Audio::FMOD fmod;
fmod.loadMusic( "menu", "musics/menu.it" );
fmod.loadMusic( "main1", "musics/main1.it" );
fmod.loadMusic( "victory", "musics/victorybg.it" );
fmod.loadSound( "victory", "musics/victory.it" );
fmod.setMasterVolume( 1.0f );
if( argc > 1 ) {
std::string arg1 = argv[ 1 ];
if( arg1 == "--cli" ) {
Siam::UI::Main::CLI ui( fmod );
return 0;
}
}
Siam::UI::Main::Allegro ui( fmod );
return 0;
}
END_OF_MAIN()