picodrive/platform/pandora/pandora.c
notaz be672de78d tweaking pandora frontend
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@874 be3aeb3a-fb24-0410-a615-afba39da0efa
2010-05-31 22:12:46 +00:00

54 lines
838 B
C

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "../linux/sndout_oss.h"
#include "../linux/fbdev.h"
#include "../linux/oshide.h"
#include "../common/emu.h"
void plat_early_init(void)
{
}
void plat_init(void)
{
int ret, w, h;
oshide_init();
ret = vout_fbdev_init(&w, &h);
if (ret != 0) {
fprintf(stderr, "couldn't init framebuffer\n");
exit(1);
}
if (w != g_screen_width || h != g_screen_height) {
fprintf(stderr, "%dx%d not supported\n", w, h);
vout_fbdev_finish();
exit(1);
}
// snd
sndout_oss_init();
}
void plat_finish(void)
{
sndout_oss_exit();
vout_fbdev_finish();
oshide_finish();
printf("all done\n");
}
/* lprintf */
void lprintf(const char *fmt, ...)
{
va_list vl;
va_start(vl, fmt);
vprintf(fmt, vl);
va_end(vl);
}