libretro: Fix segfault on startup.

This commit is contained in:
Stephen Anthony 2021-01-02 17:48:52 -03:30
parent afe0812fcc
commit 606f027dcb
1 changed files with 2 additions and 1 deletions

View File

@ -45,11 +45,12 @@ bool StellaLIBRETRO::create(bool logging)
destroy(); destroy();
myOSystem = make_unique<OSystemLIBRETRO>(); myOSystem = make_unique<OSystemLIBRETRO>();
myOSystem->create();
Settings::Options options; Settings::Options options;
myOSystem->loadConfig(options); myOSystem->loadConfig(options);
myOSystem->create();
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Settings& settings = myOSystem->settings(); Settings& settings = myOSystem->settings();