From 5502c4c5fbcf20917ee933d87b2fdd71f026f3b9 Mon Sep 17 00:00:00 2001 From: funbars <50187994+funbars@users.noreply.github.com> Date: Tue, 14 May 2019 22:34:23 -0500 Subject: [PATCH] libretro cleanup (startup) --- src/libretro/StellaLIBRETRO.cxx | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/src/libretro/StellaLIBRETRO.cxx b/src/libretro/StellaLIBRETRO.cxx index 6e4f1c839..ffe5dfa09 100644 --- a/src/libretro/StellaLIBRETRO.cxx +++ b/src/libretro/StellaLIBRETRO.cxx @@ -62,30 +62,14 @@ bool StellaLIBRETRO::create(bool logging) FilesystemNode rom("rom"); - // auto-detect properties - destroy(); - - myOSystem = make_unique(); - myOSystem->create(); - - myOSystem->settings().setValue("format", console_format); - - if(myOSystem->createConsole(rom) != EmptyString) - return false; - - - // auto-detect settings - console_timing = myOSystem->console().timing(); - phosphor_default = myOSystem->frameBuffer().tiaSurface().phosphorEnabled(); - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // build play system destroy(); myOSystem = make_unique(); myOSystem->create(); + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Settings& settings = myOSystem->settings(); if(logging) @@ -133,6 +117,9 @@ bool StellaLIBRETRO::create(bool logging) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + console_timing = myOSystem->console().timing(); + phosphor_default = myOSystem->frameBuffer().tiaSurface().phosphorEnabled(); + if(video_phosphor == "never") setVideoPhosphor(1, video_phosphor_blend); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -