/* * This file is part of PRO CFW. * PRO CFW is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * PRO CFW is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with PRO CFW. If not, see #include #include #include #include #include #include "systemctrl_se.h" #include "ui.h" #include "blit.h" #include "utils.h" #if !defined(CONFIG_635) && !defined(CONFIG_620) && !defined(CONFIG_639) && !defined(CONFIG_660) #error You have to define CONFIG_620 or CONFIG_635 or CONFIG_639 or CONFIG_660 #endif extern u32 psp_model; extern int umdvideo_idx; int menu_draw(void); int menu_setup(void); int menu_ctrl(u32 button_on); int cpu2no(int cpu); int bus2no(int cpu); void change_clock(int dir , int flag); void change_usb(int dir ); void change_umd_mode(int dir ); void change_umd_mount_idx(int dir); void change_plugins(int dir , int flag); void change_bool_option(int *p, int direction); void change_region(int dir, int max); #define scePaf_967A56EF_strlen scePaf_strlen #define scePaf_6439FDBC_memset scePaf_memset #define scePaf_B6ADE52D_memcmp scePaf_memcmp #define scePaf_11EFC5FD_sprintf scePaf_sprintf #define scePaf_15AFC8D3_snprintf scePaf_snprintf #define scePaf_6BD7452C_memcpy scePaf_memcpy #define scePaf_98DE3BA6_strcpy scePaf_strcpy int scePaf_967A56EF_strlen(const char *path); int scePaf_6439FDBC_memset(void *buff ,int c ,int size); int scePaf_B6ADE52D_memcmp(const void *path , const void *name , int c); int scePaf_11EFC5FD_sprintf(char *buffer , const char *format , ...); int scePaf_15AFC8D3_snprintf(char *buffer,int c , const char *format, ...); int scePaf_6BD7452C_memcpy(void *path , void *name , int size); int scePaf_98DE3BA6_strcpy(char *path , const char *name); int scePaf_strlen_620(const char *path); int scePaf_memset_620(void *buff ,int c ,int size); int scePaf_memcmp_620(const void *path , const void *name , int c); int scePaf_sprintf_620(char *buffer , const char *format , ...); int scePaf_snprintf_620(char *buffer,int c , const char *format, ...); int scePaf_memcpy_620(void *path , void *name , int size); int scePaf_strcpy_620(char *path , const char *name); int scePaf_strlen_660(const char *path); int scePaf_memset_660(void *buff ,int c ,int size); int scePaf_memcmp_660(const void *path , const void *name , int c); int scePaf_sprintf_660(char *buffer , const char *format , ...); int scePaf_snprintf_660(char *buffer,int c , const char *format, ...); int scePaf_memcpy_660(void *path , void *name , int size); int scePaf_strcpy_660(char *path , const char *name); typedef struct _UmdVideoEntry { char *path; struct _UmdVideoEntry *next; } UmdVideoEntry; typedef struct _UmdVideoList { UmdVideoEntry head, *tail; size_t count; } UmdVideoList; int umdvideolist_add(UmdVideoList *list, const char *path); char *umdvideolist_get(UmdVideoList *list, size_t n); size_t umdvideolist_count(UmdVideoList *list); void umdvideolist_clear(UmdVideoList *list); int umdvideolist_find(UmdVideoList *list, const char *search); void umdvideolist_init(UmdVideoList *list); int utf8video(); extern u32 psp_fw_version; extern UmdVideoList g_umdlist; enum { MSG_DEFAULT = 0, MSG_DISABLE, MSG_ENABLE, MSG_NORMAL, MSG_MARCH33, MSG_NP9660, MSG_INFERNO, MSG_CPU_CLOCK_XMB, MSG_CPU_CLOCK_GAME, MSG_USB_DEVICE, MSG_UMD_ISO_MODE, MSG_ISO_VIDEO_MOUNT, MSG_RECOVERY_MENU, MSG_SHUTDOWN_DEVICE, MSG_SUSPEND_DEVICE, MSG_RESET_DEVICE, MSG_RESET_VSH, MSG_EXIT, MSG_PRO_VSH_MENU, MSG_FLASH, MSG_UMD_DISC, MSG_MEMORY_STICK, MSG_NONE, MSG_END, }; extern const char **g_messages; extern const char *g_messages_en[]; extern int cur_language; #endif