mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-03-25 21:32:40 +01:00
preparation for retrofw and legacy opendingux support
This commit is contained in:
@@ -164,7 +164,7 @@ void plat_video_menu_enter(int is_rom_loaded)
|
||||
{
|
||||
if (SDL_MUSTLOCK(plat_sdl_screen))
|
||||
SDL_UnlockSurface(plat_sdl_screen);
|
||||
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 0);
|
||||
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 1);
|
||||
g_screen_ptr = shadow_fb;
|
||||
plat_video_set_buffer(g_screen_ptr);
|
||||
}
|
||||
@@ -212,22 +212,22 @@ void plat_video_menu_leave(void)
|
||||
void plat_video_loop_prepare(void)
|
||||
{
|
||||
if (plat_sdl_overlay != NULL || plat_sdl_gl_active) {
|
||||
g_screen_ptr = shadow_fb;
|
||||
g_screen_width = 320;
|
||||
g_screen_height = 240;
|
||||
g_screen_ppitch = g_screen_width;
|
||||
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
|
||||
g_screen_ptr = shadow_fb;
|
||||
}
|
||||
else {
|
||||
if (SDL_MUSTLOCK(plat_sdl_screen))
|
||||
SDL_LockSurface(plat_sdl_screen);
|
||||
g_screen_ptr = plat_sdl_screen->pixels;
|
||||
g_screen_width = g_menuscreen_w;
|
||||
g_screen_height = g_menuscreen_h;
|
||||
g_screen_ppitch = g_menuscreen_pp;
|
||||
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
|
||||
if (SDL_MUSTLOCK(plat_sdl_screen))
|
||||
SDL_LockSurface(plat_sdl_screen);
|
||||
g_screen_ptr = plat_sdl_screen->pixels;
|
||||
}
|
||||
plat_video_set_buffer(g_screen_ptr);
|
||||
|
||||
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
|
||||
}
|
||||
|
||||
void plat_early_init(void)
|
||||
|
||||
4
platform/opendingux/data/PicoDrive.dge
Normal file
4
platform/opendingux/data/PicoDrive.dge
Normal file
@@ -0,0 +1,4 @@
|
||||
#! /bin/sh
|
||||
echo 0 > /proc/sys/kernel/printk
|
||||
./PicoDrive "$@"
|
||||
sync
|
||||
12
platform/opendingux/data/default.retrofw.desktop
Normal file
12
platform/opendingux/data/default.retrofw.desktop
Normal file
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Name=Picodrive
|
||||
Comment=A megadrive/genesis emulator
|
||||
Exec=PicoDrive %f
|
||||
Icon=megadrive
|
||||
Categories=games;
|
||||
X-OD-Manual=
|
||||
X-OD-Selector=
|
||||
X-OD-Filter=.md,.smd,.bin,.sms,.cue,.32x,.zip,.7z
|
||||
Terminal=true
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Reference in New Issue
Block a user