libretro / easyrpg-libretro

⚠️⚠️⚠️ DON'T USE THIS FORK FOR YOUR OWN BUILDS / PACKAGES / ETC ⛔️⛔️⛔️ NO SUPPORT WHEN YOU USE IT ⚠️⚠️⚠️ It is only used by the libretro buildbot. ❤️❤️❤️ For your own builds use the upstream repository: https://github.com/EasyRPG/Player/ (See: "Building a libretro core" in the Readme) ❤️❤️❤️
https://easyrpg.org/
GNU General Public License v3.0
10 stars 8 forks source link

[Feature Request] Option to use Savefile directory as defined by RetroArch #54

Open Ryunam opened 3 years ago

Ryunam commented 3 years ago

Currently, the way the libretro core version of EasyRPG Player handles the savefiles for each game is just like standalone: the engine generates these files (for instance, "SaveXX.lsd") inside the game directory itself.

While this is an understandable approach, it makes this core one of the few that ignore the savefile directory as indicated by the user under Settings -> Directory in RetroArch. This also has the drawback of making it difficult to backup these saves automatically through an external cloud service, such as Dropbox, since in order to preserve those savefiles the user would have to put the entire game directory on the cloud server beforehand.

What would be useful is a core option that allows to define the core behavior with regards to savefile positioning:

Just to clarify, this is different from https://github.com/libretro/easyrpg-libretro/issues/32, since that one was about requesting the implementation of savestates, but here I am referring to the normal savefiles created by the engine during regular gameplay.

Ghabry commented 3 years ago

when you use this ".easyrpg" naming this will be indeed simple.

The case that makes this kinda complex is when the game is called "RPG_RT.ldb", in that case RetroArch will tell the core "Your Savefile is 'RPG_RT'". Oh great RetroArch, this is completely useless!

This is also the reason why I didn't implement this yet: I'm not sure how to prevent this conflict with the RPG_RT file.


Now that I think about it... An easy solution would be to reject saving in the libretro dir (and always use the gamedir) when the content is called "RPG_RT".

Ryunam commented 3 years ago

You read my mind! I actually wanted to suggest that same workaround, but then I omitted it thinking it would be best left to the developer's preference. :)

Yes, a solution that could potentially address this nuisance is:

Ryunam commented 2 years ago

Hi @Ghabry, is there by chance any update regarding this request?

No pressure intended, as usual! I was just wondering if you had time to look into it, as it would make syncing saves through an external cloud service so much easier.