notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drc: support ms ABI
[picodrive.git]
/
platform
/
win32
/
plat.c
diff --git
a/platform/win32/plat.c
b/platform/win32/plat.c
index
91ef0e0
..
54af829
100644
(file)
--- a/
platform/win32/plat.c
+++ b/
platform/win32/plat.c
@@
-1,3
+1,10
@@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
#include <windows.h>
#include <stdio.h>
#include <windows.h>
#include <stdio.h>
@@
-11,13
+18,9
@@
#include "main.h"
static unsigned short screen_buff[320 * 240];
#include "main.h"
static unsigned short screen_buff[320 * 240];
-static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)];
-unsigned char *PicoDraw2FB = PicoDraw2FB_;
const char *renderer_names[] = { NULL };
const char *renderer_names32x[] = { NULL };
const char *renderer_names[] = { NULL };
const char *renderer_names32x[] = { NULL };
-char cpu_clk_name[] = "unused";
-
void plat_init(void)
{
g_screen_ptr = (void *)screen_buff;
void plat_init(void)
{
g_screen_ptr = (void *)screen_buff;
@@
-61,7
+64,6
@@
int plat_wait_event(int *fds_hnds, int count, int timeout_ms)
void pemu_prep_defconfig(void)
{
memset(&defaultConfig, 0, sizeof(defaultConfig));
void pemu_prep_defconfig(void)
{
memset(&defaultConfig, 0, sizeof(defaultConfig));
- defaultConfig.s_PicoOpt|= POPT_6BTN_PAD; // for xmen proto
defaultConfig.s_PicoCDBuffers = 0;
defaultConfig.Frameskip = 0;
}
defaultConfig.s_PicoCDBuffers = 0;
defaultConfig.Frameskip = 0;
}
@@
-73,7
+75,7
@@
void pemu_validate_config(void)
void pemu_loop_prep(void)
{
PicoDrawSetOutFormat(PDF_RGB555, 1);
void pemu_loop_prep(void)
{
PicoDrawSetOutFormat(PDF_RGB555, 1);
- PicoDrawSetOutBuf(g_screen_ptr, g_screen_
widt
h * 2);
+ PicoDrawSetOutBuf(g_screen_ptr, g_screen_
ppitc
h * 2);
pemu_sound_start();
}
pemu_sound_start();
}
@@
-82,7
+84,7
@@
void pemu_loop_end(void)
pemu_sound_stop();
}
pemu_sound_stop();
}
-void pemu_forced_frame(int
opts, int no_scale
)
+void pemu_forced_frame(int
no_scale, int do_emu
)
{
}
{
}
@@
-121,7
+123,7
@@
static int sndbuff[2*44100/50/2 + 4];
static void update_sound(int len)
{
/* avoid writing audio when lagging behind to prevent audio lag */
static void update_sound(int len)
{
/* avoid writing audio when lagging behind to prevent audio lag */
- if (Pico
S
kipFrame != 2)
+ if (Pico
In.s
kipFrame != 2)
DSoundUpdate(sndbuff, (currentConfig.EmuOpt & EOPT_NO_FRMLIMIT) ? 0 : 1);
}
DSoundUpdate(sndbuff, (currentConfig.EmuOpt & EOPT_NO_FRMLIMIT) ? 0 : 1);
}
@@
-129,7
+131,7
@@
void pemu_sound_start(void)
{
int ret;
{
int ret;
- PsndOut = NULL;
+ P
icoIn.
sndOut = NULL;
currentConfig.EmuOpt &= ~EOPT_EXT_FRMLIMIT;
// prepare sound stuff
currentConfig.EmuOpt &= ~EOPT_EXT_FRMLIMIT;
// prepare sound stuff
@@
-137,14
+139,14
@@
void pemu_sound_start(void)
{
PsndRerate(0);
{
PsndRerate(0);
- ret = DSoundInit(FrameWnd, P
sndRate, (PicoOpt & POPT_EN_STEREO) ? 1 : 0, PsndL
en);
+ ret = DSoundInit(FrameWnd, P
icoIn.sndRate, (PicoIn.opt & POPT_EN_STEREO) ? 1 : 0, Pico.snd.l
en);
if (ret != 0) {
lprintf("dsound init failed\n");
return;
}
if (ret != 0) {
lprintf("dsound init failed\n");
return;
}
- PsndOut = (void *)sndbuff;
- Pico
W
riteSound = update_sound;
+ P
icoIn.
sndOut = (void *)sndbuff;
+ Pico
In.w
riteSound = update_sound;
currentConfig.EmuOpt |= EOPT_EXT_FRMLIMIT;
}
}
currentConfig.EmuOpt |= EOPT_EXT_FRMLIMIT;
}
}
@@
-219,12
+221,12
@@
void plat_debug_cat(char *str)
}
// required by pico
}
// required by pico
-int mp3_get_bitrate(
FILE
*f, int size)
+int mp3_get_bitrate(
void
*f, int size)
{
return 128;
}
{
return 128;
}
-void mp3_start_play(
FILE
*f, int pos)
+void mp3_start_play(
void
*f, int pos)
{
}
{
}