mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
beginnings for Pandora support
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@558 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
d80d5b1b67
commit
fe01739339
7 changed files with 931 additions and 13 deletions
|
@ -76,4 +76,46 @@ void menu_draw_end(void);
|
|||
#define darken_screen() \
|
||||
menu_darken_bg(psp_screen, psp_screen, SCREEN_WIDTH*SCREEN_HEIGHT, 0)
|
||||
|
||||
// ------------------------------------
|
||||
|
||||
#elif defined(PANDORA)
|
||||
|
||||
// TODO
|
||||
|
||||
#include "../gp2x/gp2x.h"
|
||||
|
||||
#define BTN_UP 0
|
||||
#define BTN_DOWN 0
|
||||
#define BTN_LEFT 0
|
||||
#define BTN_RIGHT 0
|
||||
|
||||
#define BTN_NORTH 0
|
||||
#define BTN_SOUTH 0
|
||||
#define BTN_WEST 0
|
||||
#define BTN_EAST 0
|
||||
#define BTN_L 0
|
||||
#define BTN_R 0
|
||||
|
||||
unsigned long wait_for_input(unsigned long interesting);
|
||||
void gp2x_pd_clone_buffer2(void);
|
||||
void menu_darken_bg(void *dst, int pixels, int darker);
|
||||
void menu_flip(void);
|
||||
|
||||
#define SCREEN_WIDTH 320
|
||||
#define SCREEN_HEIGHT 240
|
||||
#define SCREEN_BUFFER gp2x_screen
|
||||
|
||||
#define read_buttons(which) \
|
||||
wait_for_input(which)
|
||||
#define read_buttons_async(which) \
|
||||
(gp2x_joystick_read(0) & (which))
|
||||
#define menu_draw_begin() \
|
||||
gp2x_pd_clone_buffer2()
|
||||
#define clear_screen() \
|
||||
memset(gp2x_screen, 0, 320*240*2)
|
||||
#define darken_screen() \
|
||||
menu_darken_bg(gp2x_screen, 320*240, 0)
|
||||
#define menu_draw_end() \
|
||||
menu_flip()
|
||||
|
||||
#endif
|
||||
|
|
14
common/emu.c
14
common/emu.c
|
@ -15,25 +15,13 @@
|
|||
#include "fonts.h"
|
||||
#include "lprintf.h"
|
||||
#include "config.h"
|
||||
#include "common.h"
|
||||
|
||||
#include <Pico/PicoInt.h>
|
||||
#include <Pico/Patch.h>
|
||||
#include <Pico/cd/cue.h>
|
||||
#include <zlib/zlib.h>
|
||||
|
||||
#if defined(__GP2X__)
|
||||
#include "../gp2x/gp2x.h"
|
||||
#define SCREEN_WIDTH 320
|
||||
#define SCREEN_BUFFER gp2x_screen
|
||||
#elif defined(__GIZ__)
|
||||
#include "../gizmondo/giz.h"
|
||||
#define SCREEN_WIDTH 321
|
||||
#define SCREEN_BUFFER giz_screen
|
||||
#elif defined(PSP)
|
||||
#include "../psp/psp.h"
|
||||
#define SCREEN_WIDTH 512
|
||||
#define SCREEN_BUFFER psp_screen
|
||||
#endif
|
||||
|
||||
char *PicoConfigFile = "config.cfg";
|
||||
currentConfig_t currentConfig, defaultConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue