From 606f027dcb54561978b74886604598f6d71853bd Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 2 Jan 2021 17:48:52 -0330 Subject: [PATCH] libretro: Fix segfault on startup. --- src/libretro/StellaLIBRETRO.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libretro/StellaLIBRETRO.cxx b/src/libretro/StellaLIBRETRO.cxx index 8b3541332..584893d6b 100644 --- a/src/libretro/StellaLIBRETRO.cxx +++ b/src/libretro/StellaLIBRETRO.cxx @@ -45,11 +45,12 @@ bool StellaLIBRETRO::create(bool logging) destroy(); myOSystem = make_unique(); - myOSystem->create(); Settings::Options options; myOSystem->loadConfig(options); + myOSystem->create(); + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Settings& settings = myOSystem->settings();