-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.cpp
executable file
·45 lines (34 loc) · 1.43 KB
/
main.cpp
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
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <string>
#include "Rosalila/Rosalila.h"
#include "Utility/Utility.h"
#include "Menus/Intro.h"
#include "Menus/StageSelect.h"
#include "Menus/StageModsSelect.h"
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
bool input_config=false;
if(argc>1 && strcmp(argv[1],"config")==0)
{
input_config=true;
}
std::string config_file_path = std::string(assets_directory)+"config.json";
rosalila()->init(config_file_path);
initShooterUtility();
rosalila()->sound->addSound("Menu.back",std::string(assets_directory)+"menu/audio/back.ogg");
rosalila()->sound->addSound("Menu.confirm",std::string(assets_directory)+"menu/audio/confirm.ogg");
rosalila()->sound->addSound("Menu.down",std::string(assets_directory)+"menu/audio/down.ogg");
rosalila()->sound->addSound("Menu.left",std::string(assets_directory)+"menu/audio/left.ogg");
rosalila()->sound->addSound("Menu.right",std::string(assets_directory)+"menu/audio/right.ogg");
rosalila()->sound->addSound("Menu.up",std::string(assets_directory)+"menu/audio/up.ogg");
rosalila()->sound->addSound("Menu.invalid",std::string(assets_directory)+"menu/audio/invalid.ogg");
rosalila()->api_integrator->setCurrentControllerActionSet("MenuControls");
intro();
stageSelect();
return 0;
}