(PS3) menu works, ROM loads, but screen is black

This commit is contained in:
TwinAphex51224 2012-01-12 00:05:32 +01:00
parent e583546778
commit b3f7224ea1
3 changed files with 7 additions and 6 deletions

View File

@ -224,14 +224,14 @@ int main(int argc, char *argv[])
get_path_settings(return_to_MM);
ps3_graphics_init();
ps3_video_init();
ps3_input_init();
menu_init();
//menu_loop();
menu_loop();
/* FIXME - As long as we don't use a menu */
snprintf(g_extern.system.fullpath, sizeof(g_extern.system.fullpath), "/dev_hdd0/game/SNES90000/USRDIR/main.sfc");
//snprintf(g_extern.system.fullpath, sizeof(g_extern.system.fullpath), "/dev_hdd0/game/SNES90000/USRDIR/main.sfc");
char arg1[] = "ssnes";
char arg2[PATH_MAX];
@ -246,5 +246,5 @@ int main(int argc, char *argv[])
return ssnes_main(sizeof(argv_) / sizeof(argv_[0]) - 1, argv_);
ps3_input_deinit();
ps3_graphics_deinit();
ps3_video_deinit();
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -156,7 +156,8 @@ static bool gl_shader_init(void)
#ifdef HAVE_CG
case SSNES_SHADER_CG:
{
return gl_cg_init(g_settings.video.cg_shader_path);
if (strlen(g_settings.video.cg_shader_path) > 0)
return gl_cg_init(g_settings.video.cg_shader_path);
break;
}
#endif
@ -1083,7 +1084,7 @@ void ps3_video_init(void)
video_info.force_aspect = true;
video_info.smooth = true;
video_info.input_scale = 2;
g_gl = gl_init(&video, NULL, NULL);
g_gl = gl_init(&video_info, NULL, NULL);
}
void ps3_video_deinit(void)