This repository has been archived by the owner on May 7, 2023. It is now read-only.
forked from joel16/ElevenMPV
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5aeaff
commit c356d19
Showing
11 changed files
with
906 additions
and
862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,69 @@ | ||
#include <psp2/appmgr.h> | ||
#include <psp2/io/stat.h> | ||
#include <psp2/kernel/processmgr.h> | ||
#include <psp2/shellutil.h> | ||
#include <psp2/sysmodule.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
#include "common.h" | ||
#include "config.h" | ||
#include "dirbrowse.h" | ||
#include "fs.h" | ||
#include "menu_displayfiles.h" | ||
#include "textures.h" | ||
#include "touch.h" | ||
#include "utils.h" | ||
|
||
int main(int argc, char *argv[]) { | ||
vita2d_init(); | ||
font = vita2d_load_font_file("app0:Roboto-Regular.ttf"); | ||
Textures_Load(); | ||
|
||
sceIoMkdir("ux0:data/ElevenMPV", 0777); | ||
Config_Load(); | ||
Config_GetLastDirectory(); | ||
|
||
Utils_InitAppUtil(); | ||
SCE_CTRL_ENTER = Utils_GetEnterButton(); | ||
SCE_CTRL_CANCEL = Utils_GetCancelButton(); | ||
|
||
sceAppMgrAcquireBgmPort(); | ||
|
||
Touch_Init(); | ||
|
||
sceShellUtilInitEvents(0); | ||
sceSysmoduleLoadModule(SCE_SYSMODULE_MUSIC_EXPORT); | ||
Utils_InitPowerTick(); | ||
|
||
Menu_DisplayFiles(); | ||
|
||
sceSysmoduleUnloadModule(SCE_SYSMODULE_MUSIC_EXPORT); | ||
|
||
Touch_Shutdown(); | ||
sceAppMgrReleaseBgmPort(); | ||
Utils_TermAppUtil(); | ||
|
||
Textures_Free(); | ||
vita2d_free_font(font); | ||
vita2d_fini(); | ||
|
||
sceKernelExitProcess(0); | ||
return 0; | ||
} | ||
#include <psp2/appmgr.h> | ||
#include <psp2/io/stat.h> | ||
#include <psp2/kernel/processmgr.h> | ||
#include <psp2/kernel/clib.h> | ||
#include <psp2/shellutil.h> | ||
#include <psp2/sysmodule.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
#include "common.h" | ||
#include "config.h" | ||
#include "dirbrowse.h" | ||
#include "fs.h" | ||
#include "menu_displayfiles.h" | ||
#include "textures.h" | ||
#include "touch.h" | ||
#include "utils.h" | ||
|
||
#define CLIB_HEAP_SIZE 1 * 1024 * 1024 | ||
|
||
int _newlib_heap_size_user = 1 * 1024 * 1024; | ||
|
||
int sceAppMgrAcquireBgmPortForMusicPlayer(void); | ||
|
||
int main(int argc, char *argv[]) { | ||
|
||
void* clibm_base; | ||
void* mspace; | ||
SceUID clib_heap = sceKernelAllocMemBlock("ClibHeap", SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE, CLIB_HEAP_SIZE, NULL); | ||
sceKernelGetMemBlockBase(clib_heap, &clibm_base); | ||
mspace = sceClibMspaceCreate(clibm_base, CLIB_HEAP_SIZE); | ||
|
||
vita2d_clib_pass_mspace(mspace); | ||
vita2d_init(); | ||
font = vita2d_load_font_file("app0:Roboto-Regular.ttf"); | ||
Textures_Load(); | ||
|
||
sceIoMkdir("ux0:data/ElevenMPV", 0777); | ||
Config_Load(); | ||
Config_GetLastDirectory(); | ||
|
||
Utils_InitAppUtil(); | ||
SCE_CTRL_ENTER = Utils_GetEnterButton(); | ||
SCE_CTRL_CANCEL = Utils_GetCancelButton(); | ||
|
||
sceAppMgrAcquireBgmPortForMusicPlayer(); | ||
|
||
Touch_Init(); | ||
|
||
sceShellUtilInitEvents(0); | ||
sceSysmoduleLoadModule(SCE_SYSMODULE_MUSIC_EXPORT); | ||
Utils_InitPowerTick(); | ||
|
||
Menu_DisplayFiles(); | ||
|
||
sceSysmoduleUnloadModule(SCE_SYSMODULE_MUSIC_EXPORT); | ||
|
||
Touch_Shutdown(); | ||
sceAppMgrReleaseBgmPort(); | ||
Utils_TermAppUtil(); | ||
|
||
Textures_Free(); | ||
vita2d_free_font(font); | ||
vita2d_fini(); | ||
|
||
sceKernelExitProcess(0); | ||
return 0; | ||
} |
Oops, something went wrong.