After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782772 - retro: Libretro cores should have an appropriate save directory
retro: Libretro cores should have an appropriate save directory
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-18 09:34 UTC by Adrien Plazas
Modified: 2017-05-18 13:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
video: Make CairoDisplay.set_core() accept null (1.28 KB, patch)
2017-05-18 12:20 UTC, Adrien Plazas
committed Details | Review
audio: Make PaPlayer.set_core() accept null (1.08 KB, patch)
2017-05-18 12:20 UTC, Adrien Plazas
committed Details | Review
retro: Set the save dir of the core (1.62 KB, patch)
2017-05-18 13:03 UTC, Adrien Plazas
committed Details | Review
retro: Remove core from audio and video outputs (888 bytes, patch)
2017-05-18 13:03 UTC, Adrien Plazas
committed Details | Review
retro: Deinit RetroRunner on destruction (1.00 KB, patch)
2017-05-18 13:03 UTC, Adrien Plazas
committed Details | Review
ui: Stop core instead of pausing it on quit (988 bytes, patch)
2017-05-18 13:03 UTC, Adrien Plazas
committed Details | Review

Description Adrien Plazas 2017-05-18 09:34:26 UTC
Currently the save directory assigned to Libretro cores is "." which is very wrong, we should instead have one in the regular save directory using the game's GUID.
Comment 1 Adrien Plazas 2017-05-18 12:20:41 UTC
Created attachment 352083 [details] [review]
video: Make CairoDisplay.set_core() accept null

This will help releasing references on the core.
Comment 2 Adrien Plazas 2017-05-18 12:20:46 UTC
Created attachment 352084 [details] [review]
audio: Make PaPlayer.set_core() accept null

This will help releasing references on the core.
Comment 3 Adrien Plazas 2017-05-18 12:21:53 UTC
Attachment 352083 [details] pushed as fca1ea4 - video: Make CairoDisplay.set_core() accept null
Attachment 352084 [details] pushed as c1309b8 - audio: Make PaPlayer.set_core() accept null
Comment 4 Adrien Plazas 2017-05-18 13:03:33 UTC
Created attachment 352095 [details] [review]
retro: Set the save dir of the core
Comment 5 Adrien Plazas 2017-05-18 13:03:37 UTC
Created attachment 352096 [details] [review]
retro: Remove core from audio and video outputs

This will help ensuring we don't use the core we want to free anymore.
Comment 6 Adrien Plazas 2017-05-18 13:03:42 UTC
Created attachment 352097 [details] [review]
retro: Deinit RetroRunner on destruction

This helps ensuring we unload the game, deinit the core, and by
extension that cores saving on unload save as expected.
Comment 7 Adrien Plazas 2017-05-18 13:03:47 UTC
Created attachment 352098 [details] [review]
ui: Stop core instead of pausing it on quit

When using RetroRunner, this helps ensuring we unload the game, deinit
the core, and by extension that cores saving on unload save as expected
when quitting the application.
Comment 8 Adrien Plazas 2017-05-18 13:05:04 UTC
Attachment 352095 [details] pushed as 2ffd5e5 - retro: Set the save dir of the core
Attachment 352096 [details] pushed as fa418d2 - retro: Remove core from audio and video outputs
Attachment 352097 [details] pushed as 9c40b4a - retro: Deinit RetroRunner on destruction
Attachment 352098 [details] pushed as 378b4c4 - ui: Stop core instead of pausing it on quit