src/platform/psp2/main.c (view raw)
1/* Copyright (c) 2013-2015 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#include "psp2-context.h"
7
8#include <psp2/kernel/processmgr.h>
9#include <psp2/moduleinfo.h>
10
11PSP2_MODULE_INFO(0, 0, "mGBA");
12
13int main() {
14 printf("%s initializing", projectName);
15 GBAPSP2Setup();
16 GBAPSP2LoadROM("cache0:/VitaDefilerClient/Documents/GBA/rom.gba");
17 GBAPSP2Runloop();
18 GBAPSP2UnloadROM();
19 GBAPSP2Teardown();
20
21 sceKernelExitProcess(0);
22 return 0;
23}