$(LD) ?= $(CC)
TARGET ?= PicoDrive
DEBUG ?= 0
-CFLAGS += -I.
+CFLAGS += -I$(PWD)
CYCLONE_CC ?= gcc
CYCLONE_CXX ?= g++
ARCH = mipsel
asm_render = 1
- OBJS += platform/ps2/asm.o
+ OBJS += platform/libretro/ps2/asm.o
# CTR (3DS)
else ifeq ($(platform), ctr)
\r
;@ For commercial use, separate licencing terms must be obtained.\r
\r
-#include "../../pico/arm_features.h"\r
+#include <pico/arm_features.h>\r
\r
.data\r
.align 4\r
#define _GNU_SOURCE
#include <stdio.h>
-#include "../pico/pico_int.h"
+#include <pico/pico_int.h>
#include "debug.h"
static char pdb_pending_cmds[128];
#define FAMEC_EXTRA_INLINE INLINE\r
#endif\r
\r
+#include <pico/pico_types.h>\r
+/*\r
#ifdef u8\r
#undef u8\r
#endif\r
#define u32 unsigned int\r
#define s32 signed int\r
#define uptr uintptr_t\r
+*/\r
\r
/*\r
typedef unsigned char u8;\r
#include <stdlib.h>
#include <assert.h>
-#include "../../pico/pico_int.h"
-#include "../../pico/arm_features.h"
+#include <pico/pico_int.h>
+#include <pico/arm_features.h>
#include "sh2.h"
#include "compiler.h"
#include "../drc/cmn.h"
// MAME types
#ifndef INT8
-typedef signed char INT8;
-typedef signed short INT16;
-typedef signed int INT32;
-typedef unsigned int UINT32;
-typedef unsigned short UINT16;
-typedef unsigned char UINT8;
+typedef s8 INT8;
+typedef s16 INT16;
+typedef s32 INT32;
+typedef u32 UINT32;
+typedef u16 UINT16;
+typedef u8 UINT8;
#endif
#ifdef DRC_SH2
#ifndef __SH2_H__\r
#define __SH2_H__\r
\r
-#include "../../pico/pico_types.h"\r
-#include "../../pico/pico_port.h"\r
+#include <pico/pico_types.h>\r
+#include <pico/pico_port.h>\r
\r
// registers - matches structure order\r
typedef enum {\r
*/
#include "../pico_int.h"
#include "../sound/ym2612.h"
-#include "../../cpu/sh2/compiler.h"
+#include <cpu/sh2/compiler.h>
struct Pico32x Pico32x;
SH2 sh2s[2];
static void convert_pal555(int invert_prio)
{
- unsigned int *ps = (void *)Pico32xMem->pal;
- unsigned int *pd = (void *)Pico32xMem->pal_native;
- unsigned int m1 = 0x001f001f;
- unsigned int m2 = 0x03e003e0;
- unsigned int m3 = 0xfc00fc00; // includes prio bit
- unsigned int inv = 0;
+ u32 *ps = (void *)Pico32xMem->pal;
+ u32 *pd = (void *)Pico32xMem->pal_native;
+ u32 m1 = 0x001f001f;
+ u32 m2 = 0x03e003e0;
+ u32 m3 = 0xfc00fc00; // includes prio bit
+ u32 inv = 0;
int i;
if (invert_prio)
inv = 0x80008000;
for (i = 0x100/2; i > 0; i--, ps++, pd++) {
- unsigned int t = *ps ^ inv;
+ u32 t = *ps ^ inv;
*pd = PXCONV(t);
}
// direct color mode
#define do_line_dc(pd, p32x, pmd, inv, pmd_draw_code) \
{ \
- const unsigned int m1 = 0x001f; \
- const unsigned int m2 = 0x03e0; \
- const unsigned int m3 = 0x7c00; \
+ const u16 m1 = 0x001f; \
+ const u16 m2 = 0x03e0; \
+ const u16 m3 = 0x7c00; \
unsigned short t; \
int i = 320; \
\
@* See COPYING file in the top-level directory.
@*
-#include "pico/arm_features.h"
-#include "pico/pico_int_offs.h"
+#include <pico/arm_features.h>
+#include <pico/pico_int_offs.h>
.extern Pico32x
.extern Pico
#include "../pico_int.h"
#include "../memory.h"
-#include "../../cpu/sh2/compiler.h"
+#include <cpu/sh2/compiler.h>
DRC_DECLARE_SR;
static const char str_mars[] = "MARS";
* See COPYING file in the top-level directory.\r
*/\r
\r
-#include "../pico_int_offs.h"\r
+#include <pico/pico_int_offs.h>\r
\r
@ 32X bank sizes... TODO this should somehow come from an include file\r
.equ SH2_ROM_SHIFT, 10 @ 0x003fffff\r
#include "../pico_int.h"
#include "../memory.h"
-#include "../../cpu/sh2/compiler.h"
+#include <cpu/sh2/compiler.h>
DRC_DECLARE_SR;
// DMAC handling
struct dma_chan {
- unsigned int sar, dar; // src, dst addr
- unsigned int tcr; // transfer count
- unsigned int chcr; // chan ctl
+ u32 sar, dar; // src, dst addr
+ u32 tcr; // transfer count
+ u32 chcr; // chan ctl
// -- dm dm sm sm ts ts ar am al ds dl tb ta ie te de
// ts - transfer size: 1, 2, 4, 16 bytes
// ar - auto request if 1, else dreq signal
struct dmac {
struct dma_chan chan[2];
- unsigned int vcrdma0;
- unsigned int unknown0;
- unsigned int vcrdma1;
- unsigned int unknown1;
- unsigned int dmaor;
+ u32 vcrdma0;
+ u32 unknown0;
+ u32 vcrdma1;
+ u32 unknown1;
+ u32 dmaor;
// -- pr ae nmif dme
// pr - priority: chan0 > chan1 or round-robin
// ae - address error
*/\r
\r
#include "pico_int.h"\r
-#include "../cpu/debug.h"\r
-#include "../unzip/unzip.h"\r
+#include <cpu/debug.h>\r
+#include <unzip/unzip.h>\r
#include <zlib.h>\r
\r
#ifdef USE_LIBRETRO_VFS\r
* See COPYING file in the top-level directory.
*/
-#include "../../pico_int.h"
-#include "../../../cpu/drc/cmn.h"
+#include <pico/pico_int.h>
+#include <cpu/drc/cmn.h>
#include "compiler.h"
// FIXME: asm has these hardcoded
#endif
#define COUNT_OP
-#include "../../../cpu/drc/emit_arm.c"
+#include <cpu/drc/emit_arm.c>
// -----------------------------------------------------
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "../../pico_int.h"
-#include "../../memory.h"
+#include <pico/pico_int.h>
+#include <pico/memory.h>
// for wait loop det
static void PicoWrite16_dram(u32 a, u32 d)
* ops not used by VR are not implemented
*/
-#include "../../pico_int.h"
+#include <pico/pico_int.h>
#define u32 unsigned int
@* See COPYING file in the top-level directory.
@*
-#include "../../arm_features.h"
+#include <pico/arm_features.h>
@.syntax unified
.text
#undef int16\r
#undef int32\r
\r
-#define uint8 unsigned char\r
-#define uint16 unsigned short\r
-#define uint32 unsigned int\r
-#define int8 signed char\r
-#define int16 signed short\r
-#define int32 signed int\r
+#define uint8 u8\r
+#define uint16 u16\r
+#define uint32 u32\r
+#define int8 s8\r
+#define int16 s16\r
+#define int32 s32\r
\r
#define READ_BYTE(BASE, ADDR) (BASE)[(ADDR)^1]\r
#define WRITE_BYTE(BASE, ADDR, VAL) (BASE)[(ADDR)^1] = (VAL)\r
}
}
-void gfx_start(unsigned int base)
+void gfx_start(uint32 base)
{
/* make sure 2M mode is enabled */
if (!(Pico_mcd->s68k_regs[3] & 0x04))
PICO_INTERNAL void DmaSlowCell(u32 source, u32 a, int len, unsigned char inc)
{
unsigned char *base;
- unsigned int asrc, a2;
+ u32 asrc, a2;
u16 *r;
base = Pico_mcd->word_ram1M[Pico_mcd->s68k_regs[3]&1];
@* See COPYING file in the top-level directory.
@*
-#include "../arm_features.h"
-#include "../pico_int_offs.h"
+#include <pico/arm_features.h>
+#include <pico/pico_int_offs.h>
.equiv PCM_STEP_SHIFT, 11
\r
#include "pico_int.h"\r
\r
-typedef unsigned char u8;\r
\r
static unsigned int pppc, ops=0;\r
extern unsigned int lastread_a, lastread_d[16], lastwrite_cyc_d[16], lastwrite_mus_d[16];\r
unsigned char *HighColBase = DefHighCol;\r
int HighColIncrement;\r
\r
-static u16 DefOutBuff[320*2];\r
+static u16 DefOutBuff[320*2] ALIGNED(4);\r
void *DrawLineDestBase = DefOutBuff;\r
int DrawLineDestIncrement;\r
\r
// draw sprite pixels, process operator colors\r
#define pix_sh(x) \\r
if (likely(t)) \\r
- pd[x]=(likely(t<0xe) ? pal|t : pd[x]|((t-1)<<6));\r
+ pd[x]=(likely(t<0xe) ? pal|t : pd[x]|((t-1)<<6))\r
\r
TileNormMaker(TileNormSH, pix_sh)\r
TileFlipMaker(TileFlipSH, pix_sh)\r
// draw sprite pixels, mark but don't process operator colors\r
#define pix_sh_markop(x) \\r
if (likely(t)) \\r
- pd[x]=(likely(t<0xe) ? pal|t : pd[x]|0x40);\r
+ pd[x]=(likely(t<0xe) ? pal|t : pd[x]|0x40)\r
\r
TileNormMaker(TileNormSH_markop, pix_sh_markop)\r
TileFlipMaker(TileFlipSH_markop, pix_sh_markop)\r
*/
#include "../pico_int.h"
#include "../memory.h"
-#include "../sound/sn76496.h"
/*
void dump(u16 w)
#define PICO_INTERNAL_INCLUDED\r
#include <stdio.h>\r
#include <string.h>\r
+#include "pico_types.h"\r
#include "pico_port.h"\r
#include "pico.h"\r
#include "carthw/carthw.h"\r
extern "C" {\r
#endif\r
\r
-#include "pico_types.h"\r
-\r
// ----------------------- 68000 CPU -----------------------\r
#ifdef EMU_C68K\r
-#include "../cpu/cyclone/Cyclone.h"\r
+#include <cpu/cyclone/Cyclone.h>\r
extern struct Cyclone PicoCpuCM68k, PicoCpuCS68k;\r
#define SekCyclesLeft PicoCpuCM68k.cycles // cycles left for this run\r
#define SekCyclesLeftS68k PicoCpuCS68k.cycles\r
#endif\r
\r
#ifdef EMU_F68K\r
-#include "../cpu/fame/fame.h"\r
+#include <cpu/fame/fame.h>\r
extern M68K_CONTEXT PicoCpuFM68k, PicoCpuFS68k;\r
#define SekCyclesLeft PicoCpuFM68k.io_cycle_counter\r
#define SekCyclesLeftS68k PicoCpuFS68k.io_cycle_counter\r
#endif\r
\r
#ifdef EMU_M68K\r
-#include "../cpu/musashi/m68kcpu.h"\r
+#include <cpu/musashi/m68kcpu.h>\r
extern m68ki_cpu_core PicoCpuMM68k, PicoCpuMS68k;\r
#ifndef SekCyclesLeft\r
#define SekCyclesLeft PicoCpuMM68k.cyc_remaining_cycles\r
// ----------------------- Z80 CPU -----------------------\r
\r
#if defined(_USE_DRZ80)\r
-#include "../cpu/DrZ80/drz80.h"\r
+#include <cpu/DrZ80/drz80.h>\r
\r
extern struct DrZ80 drZ80;\r
\r
#define z80_pc() (drZ80.Z80PC - drZ80.Z80PC_BASE)\r
\r
#elif defined(_USE_CZ80)\r
-#include "../cpu/cz80/cz80.h"\r
+#include <cpu/cz80/cz80.h>\r
\r
#define z80_run(cycles) Cz80_Exec(&CZ80, cycles)\r
#define z80_run_nr(cycles) Cz80_Exec(&CZ80, cycles)\r
\r
// ----------------------- SH2 CPU -----------------------\r
\r
-#include "cpu/sh2/sh2.h"\r
+#include <cpu/sh2/sh2.h>\r
\r
extern SH2 sh2s[2];\r
#define msh2 sh2s[0]\r
\r
// cd/gfx.c\r
void gfx_init(void);\r
-void gfx_start(unsigned int base);\r
+void gfx_start(u32 base);\r
void gfx_update(unsigned int cycles);\r
int gfx_context_save(unsigned char *state);\r
int gfx_context_load(const unsigned char *state);\r
\r
/* idle loop detection, not to be used in CD mode */\r
#ifdef EMU_C68K\r
-#include "cpu/cyclone/tools/idle.h"\r
+#include <cpu/cyclone/tools/idle.h>\r
#endif\r
\r
static unsigned short **idledet_ptrs = NULL;\r
* See COPYING file in the top-level directory.
*/
-#include "string.h"
+#include <string.h>
#define MAXOUT (+32767)
#define MINOUT (-32768)
#define _H_FM_FM_\r
\r
/* compiler dependence */\r
-#include <stdint.h>\r
+#include "../pico_types.h"\r
#ifndef UINT8\r
-typedef uint8_t UINT8; /* unsigned 8bit */\r
-typedef uint16_t UINT16; /* unsigned 16bit */\r
-typedef uint32_t UINT32; /* unsigned 32bit */\r
+typedef u8 UINT8; /* unsigned 8bit */\r
+typedef u16 UINT16; /* unsigned 16bit */\r
+typedef u32 UINT32; /* unsigned 32bit */\r
#endif\r
#ifndef INT8\r
-typedef int8_t INT8; /* signed 8bit */\r
-typedef int16_t INT16; /* signed 16bit */\r
-typedef int32_t INT32; /* signed 32bit */\r
+typedef s8 INT8; /* signed 8bit */\r
+typedef s16 INT16; /* signed 16bit */\r
+typedef s32 INT32; /* signed 32bit */\r
#endif\r
\r
#if 1\r
#define YM2612PicoStateLoad YM2612PicoStateLoad_\r
#else\r
/* GP2X specific */\r
-#include "../../platform/gp2x/940ctl.h"\r
+#include <platform/gp2x/940ctl.h>\r
#define YM2612Init(baseclock,rate,ssg) do { \\r
if (PicoIn.opt&POPT_EXT_FM) YM2612Init_940(baseclock, rate, ssg); \\r
else YM2612Init_(baseclock, rate, ssg); \\r
@ vim:filetype=armasm
-#include "../arm_features.h"
+#include <pico/arm_features.h>
@ very simple YM2612 output rate to sample rate adaption (~500k cycles @44100)
#define INTERPOL
#include "pico_int.h"\r
#include <zlib.h>\r
\r
-#include "../cpu/sh2/sh2.h"\r
+#include <cpu/sh2/sh2.h>\r
#include "sound/ym2612.h"\r
#include "sound/emu2413/emu2413.h"\r
#include "state.h"\r
\r
u32 SATaddr, SATmask; // VRAM addr of sprite attribute table\r
\r
-int (*PicoDmaHook)(unsigned int source, int len, unsigned short **base, unsigned int *mask) = NULL;\r
+int (*PicoDmaHook)(u32 source, int len, unsigned short **base, unsigned int *mask) = NULL;\r
\r
\r
/* VDP FIFO implementation\r
\r
emu_init();\r
\r
-#ifdef GPERF\r
- ProfilerStart("gperf.out");\r
-#endif\r
-\r
engineState = PGS_Menu;\r
\r
if (argc > 1)\r
/* vvv fallthrough */\r
\r
case PGS_Running:\r
+#ifdef GPERF\r
+ ProfilerStart("gperf.out");\r
+#endif\r
emu_loop();\r
+#ifdef GPERF\r
+ ProfilerStop();\r
+#endif\r
break;\r
\r
case PGS_Quit:\r
}\r
\r
endloop:\r
-#ifdef GPERF\r
- ProfilerStop();\r
-#endif\r
\r
emu_finish();\r
plat_finish();\r
return 0xffff;
}
-#include "../libpicofe/menu.c"
+#include <platform/libpicofe/menu.c>
static const char *men_dummy[] = { NULL };
/* platform specific options and handlers */
#if defined(__GP2X__)
-#include "../gp2x/menu.c"
+#include <platform/gp2x/menu.c>
#elif defined(PANDORA)
-#include "../pandora/menu.c"
+#include <platform/pandora/menu.c>
#else
#define MENU_OPTIONS_GFX
#define MENU_OPTIONS_ADV
if (!no_scale && g_menuscreen_w / w >= 2 && g_menuscreen_h / h >= 2)
{
- unsigned int t, *d = g_menubg_ptr;
+ u32 t, *d = g_menubg_ptr;
d += (g_menuscreen_h / 2 - h * 2 / 2)
* g_menuscreen_w / 2;
d += (g_menuscreen_w / 2 - w * 2 / 2) / 2;
static int yuv_ry[32], yuv_gy[32], yuv_by[32];
static unsigned char yuv_u[32 * 2], yuv_v[32 * 2];
static unsigned char yuv_y[256];
-static struct uyvy { unsigned int y:8; unsigned int vyu:24; } yuv_uyvy[65536];
+static struct uyvy { uint32_t y:8; uint32_t vyu:24; } yuv_uyvy[65536];
void bgr_to_uyvy_init(void)
{
#include "kgsdk/Framework2D.h"
#include "kgsdk/FrameworkAudio.h"
#include "../common/emu.h"
-#include "../common/lprintf.h"
#include "../common/arm_utils.h"
#include "../common/config.h"
+#include "../libpicofe/lprintf.h"
#include "emu.h"
#include "menu.h"
#include "giz.h"
#include "kgsdk/Framework.h"
#include "kgsdk/Framework2D.h"
#include "giz.h"
-#include "version.h"
+#include "../common/version.h"
#define LOG_FILE "log.log"
#include "../common/menu.h"\r
#include "../common/emu.h"\r
#include "../common/config.h"\r
-#include "version.h"\r
+#include "../common/version.h"\r
\r
\r
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)\r
#include "../common/emu.h"\r
#include "../common/readpng.h"\r
#include "../common/input.h"\r
-#include "version.h"\r
+#include "../common/version.h"\r
\r
#include <pico/pico_int.h>\r
#include <pico/patch.h>\r
void menu_darken_bg(void *dst, const void *src, int pixels, int darker);\r
static void menu_prepare_bg(int use_game_bg);\r
\r
-static unsigned int inp_prev = 0;\r
-\r
void menu_draw_begin(int use_bgbuff)\r
{\r
if (use_bgbuff)\r
// warning: alignment\r
void menu_darken_bg(void *dst, const void *src, int pixels, int darker)\r
{\r
- unsigned int *dest = dst;\r
- const unsigned int *srce = src;\r
+ u32 *dest = dst;\r
+ const u32 *srce = src;\r
pixels /= 2;\r
if (darker)\r
{\r
while (pixels--)\r
{\r
- unsigned int p = *srce++;\r
+ u32 p = *srce++;\r
*dest++ = ((p&0xf79ef79e)>>1) - ((p&0xc618c618)>>3);\r
}\r
}\r
{\r
while (pixels--)\r
{\r
- unsigned int p = *srce++;\r
+ u32 p = *srce++;\r
*dest++ = (p&0xf79ef79e)>>1;\r
}\r
}\r
#include "../common/arm_utils.h"\r
#include "../common/menu_pico.h"\r
#include "../common/emu.h"\r
-#include "../../pico/pico_int.h"\r
-#include "../../pico/sound/ym2612.h"\r
-#include "../../pico/sound/mix.h"\r
+#include <pico/pico_int.h>\r
+#include <pico/sound/ym2612.h>\r
+#include <pico/sound/mix.h>\r
#include "code940/940shared.h"\r
#include "plat.h"\r
#include "940ctl.h"\r
// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas\r
\r
#include "940shared.h"\r
-#include "../../common/helix/pub/mp3dec.h"\r
+#include <platform/common/helix/pub/mp3dec.h>\r
\r
static _940_data_t *shared_data = (_940_data_t *) 0x00100000;\r
static _940_ctl_t *shared_ctl = (_940_ctl_t *) 0x00200000;\r
-#include "../../../pico/sound/ym2612.h"\r
+#include <pico/sound/ym2612.h>\r
\r
// max 16 jobs, lower num means higher prio\r
enum _940_job_t {\r
# settings\r
#up = 1\r
\r
-CFLAGS += -O2 -Wall -mno-thumb-interwork -fstrict-aliasing -ffast-math\r
+CFLAGS += -O3 -Wall -mno-thumb-interwork -fstrict-aliasing -fno-stack-protector -fno-common -ffast-math\r
CFLAGS += -I../../common/helix/pub -I../../.. -I. -D__GP2X__ -DARM\r
CFLAGS += -mcpu=arm940t -mtune=arm940t -mabi=apcs-gnu -mfloat-abi=soft -mfpu=fpa\r
LDFLAGS = -static -e code940 -Ttext 0x0 -L$(lgcc_path) -lgcc\r
@echo ">>>" $@\r
$(GCC) $(CFLAGS) -Os -DEXTERNAL_YM2612 -c $< -o $@\r
\r
-mix.o : ../../../pico/sound/mix.s\r
- @echo ">>>" $@\r
- $(GCC) $(CFLAGS) -DEXTERNAL_YM2612 -c $< -o $@\r
misc_arm.o : ../../../pico/misc_arm.s\r
@echo ">>>" $@\r
$(GCC) $(CFLAGS) -DEXTERNAL_YM2612 -c $< -o $@\r
//#include "emu.h"\r
//#include "menu.h"\r
#include "../asmutils.h"\r
-#include "../../helix/pub/mp3dec.h"\r
+#include <platform/common/helix/pub/mp3dec.h>\r
\r
/* we will need some gp2x internals here */\r
extern volatile unsigned short *gp2x_memregs; /* from minimal library rlyeh */\r
#ifndef _WIN32
#ifndef NO_MMAP
#ifdef __SWITCH__
-#include "../switch/mman.h"
+#include "switch/mman.h"
#else
#include <sys/mman.h>
#endif
#endif
#if defined(RENDER_GSKIT_PS2)
+#include <malloc.h>
#include "libretro-common/include/libretro_gskit_ps2.h"
-#include "../ps2/asm.h"
+#include "ps2/asm.h"
#endif
#ifdef _3DS
\r
#define p(x) px[(x)*2 >> 2] = px[((x)*2 >> 2) + 1]\r
// 16-bit modes\r
- unsigned int *px = (unsigned int *)((short *)g_screen_ptr + scr_offs);\r
- unsigned int col_g = (led_reg & 2) ? 0x06000600 : 0;\r
- unsigned int col_r = (led_reg & 1) ? 0xc000c000 : 0;\r
+ uint32_t *px = (uint32_t *)((short *)g_screen_ptr + scr_offs);\r
+ uint32_t col_g = (led_reg & 2) ? 0x06000600 : 0;\r
+ uint32_t col_r = (led_reg & 1) ? 0xc000c000 : 0;\r
p(pitch*0) = p(pitch*1) = p(pitch*2) = col_g;\r
p(pitch*0 + led_offs) = p(pitch*1 + led_offs) = p(pitch*2 + led_offs) = col_r;\r
#undef p\r
#include "../libpicofe/input.h"
#include "../common/emu.h"
#include "../common/input_pico.h"
-#include "version.h"
+#include "../common/version.h"
#include "log_io.h"
#include "asm_utils.h"
#include "../common/emu.h"
#include "../common/config.h"
-#include "../common/lprintf.h"
#include <pico/pico_int.h>
#include <pico/cd/cue.h>
#include "../common/menu.h"
#include "../common/emu.h"
#include "../common/config.h"
-#include "../common/lprintf.h"
+#include "../libpicofe/lprintf.h"
#ifdef GPROF
#include <pspprof.h>
#include "../common/menu.h"
#include "../common/emu.h"
#include "../common/readpng.h"
-#include "../common/lprintf.h"
#include "../common/input.h"
-#include "version.h"
+#include "../common/version.h"
#include <pico/pico_int.h>
#include <pico/patch.h>
static void menu_prepare_bg(int use_game_bg, int use_fg);
-static unsigned int inp_prev = 0;
-
void menu_draw_begin(void)
{
// short *src = (short *)bg_buffer, *dst = (short *)menu_screen;
#include <pspaudiocodec.h>
#include <kubridge.h>
-#include "../../pico/pico_int.h"
-#include "../../pico/sound/mix.h"
-#include "../common/lprintf.h"
+#include <pico/pico_int.h>
+#include <pico/sound/mix.h>
+#include "../libpicofe/lprintf.h"
int mp3_last_error = 0;
#include "psp.h"
#include "emu.h"
-#include "../common/lprintf.h"
-#include "version.h"
+#include <pico/pico_int.h>
+#include "../common/version.h"
extern int pico_main(void);
#include <commdlg.h>\r
#include <stdio.h>\r
\r
-#include "../../pico/pico.h"\r
+#include <pico/pico.h>\r
#include "../common/readpng.h"\r
#include "../common/config.h"\r
-#include "../common/lprintf.h"\r
#include "../common/emu.h"\r
#include "../common/menu.h"\r
#include "../common/input.h"\r
#include "../common/plat.h"\r
-#include "version.h"\r
+#include "../common/version.h"\r
#include "direct.h"\r
#include "in_vk.h"\r
\r
#include <windows.h>
#include <stdio.h>
-#include "../common/lprintf.h"
#include "../common/plat.h"
#include "../common/emu.h"
-#include "../../pico/pico.h"
-#include "version.h"
+#include "../common/version.h"
+#include <pico/pico.h>
#include "direct.h"
#include "dsnd.h"
#include "main.h"
#include <sys/stat.h>\r
#include <string.h>\r
#include <ctype.h>\r
+#include <stdint.h>\r
\r
#ifndef MAX_PATH\r
#define MAX_PATH 1024\r
\r
#define LAME_OPTIONS "-h --cbr"\r
\r
-typedef unsigned char u8;\r
-typedef unsigned short int u16;\r
-typedef unsigned int u32;\r
-typedef unsigned long long int u64;\r
-typedef signed char s8;\r
-typedef signed short int s16;\r
-typedef signed int s32;\r
-typedef signed long long int s64;\r
+typedef uint8_t u8;\r
+typedef uint16_t u16;\r
+typedef uint32_t u32;\r
+typedef uint64_t u64;\r
+typedef int8_t s8;\r
+typedef int16_t s16;\r
+typedef int32_t s32;\r
+typedef int64_t s64;\r
\r
typedef enum\r
{\r
#include <stdarg.h>
#include <stdio.h>
-#include "cpu/sh2/compiler.c"
+#include <cpu/sh2/compiler.c>
struct Pico Pico;
SH2 sh2s[2];
#include <stdio.h>
#include <stddef.h>
-#include "../pico/pico_int.h"
+#include <pico/pico_int.h>
#define DUMP(f, prefix, type, field) \
fprintf(f, "#define %-20s 0x%02x\n", \
field=$(echo $* | sed 's/ /./g')
name=$(echo $* | sed 's/ /_/g')
echo '#include <stdint.h>' > /tmp/getoffs.c
- echo '#include "pico/pico_int.h"' >> /tmp/getoffs.c
+ echo '#include <pico/pico_int.h>' >> /tmp/getoffs.c
echo "static struct $struct p;" >> /tmp/getoffs.c
echo "const int32_t val = (char *)&p.$field - (char*)&p;" >>/tmp/getoffs.c
compile_rodata