move pretro_set_environment(rarch_environment_cb); further down since it wouldn't have achieved the desired effect in that location
added a function to restore the original configuration when unloading the core so overrides won't affect the main config
- renamed the function to something more suitable and cleaned up the comments a bit
- moved back !global->system.info.library_name check, this shouldn't return false, this is not an error but an early return condition
enabled if will propagate to your main config)
Had to change the delimiter for appendconfig to "|" so users can load configs with filenames including ,