libretro cleanup (startup)

This commit is contained in:
funbars 2019-05-14 22:34:23 -05:00 committed by Stephen Anthony
parent d86f5d8a07
commit a6412f4ab2
1 changed files with 5 additions and 18 deletions

View File

@ -62,30 +62,14 @@ bool StellaLIBRETRO::create(bool logging)
FilesystemNode rom("rom");
// auto-detect properties
destroy();
myOSystem = make_unique<OSystemLIBRETRO>();
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<OSystemLIBRETRO>();
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);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -