[gnome-games/wip/exalm/crash: 13/15] retro-runner: Always set save directory
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/crash: 13/15] retro-runner: Always set save directory
- Date: Wed, 21 Nov 2018 15:01:52 +0000 (UTC)
commit e10856efd5fac20f4d92cb9763b7fc563d6306f7
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Fri Nov 16 00:07:51 2018 +0500
retro-runner: Always set save directory
Save directory is required for some standalone libretro games, so create
it even when 'core_source' is null.
src/retro/retro-runner.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 7c985d10..79ac5a9f 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -272,12 +272,12 @@ public class Games.RetroRunner : Object, Runner {
var platform = core_source.get_platform ();
var platform_id = platform.get_id ();
core.system_directory = @"$platforms_dir/$platform_id/system";
-
- var save_directory = get_save_directory_path ();
- Application.try_make_dir (save_directory);
- core.save_directory = save_directory;
}
+ var save_directory = get_save_directory_path ();
+ Application.try_make_dir (save_directory);
+ core.save_directory = save_directory;
+
core.log.connect (Retro.g_log);
view.set_core (core);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]