forked from wiiu-env/SplashscreenModule
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (24 loc) · 716 Bytes
/
main.cpp
File metadata and controls
30 lines (24 loc) · 716 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
#include "gfx/SplashScreenDrawer.h"
#include "gfx/gfx.h"
#include "utils/logger.h"
#include "utils/utils.h"
#include "version.h"
#include <coreinit/memory.h>
#define MODULE_VERSION "v0.1"
#define MODULE_VERSION_FULL MODULE_VERSION SPLASHSCREEN_MODULE_VERSION_EXTRA
int32_t main(int32_t argc, char **argv) {
initLogging();
DEBUG_FUNCTION_LINE_INFO("Running SplashScreen Module " MODULE_VERSION_FULL "");
std::filesystem::path basePath = "fs:/vol/external01/wiiu";
if (argc >= 1) {
basePath = argv[0];
}
GfxInit();
{
SplashScreenDrawer splashScreenDrawer(basePath);
splashScreenDrawer.Draw();
}
GfxShutdown();
deinitLogging();
return 0;
}