capsterx / solarus

solarus for switch
Other
12 stars 1 forks source link

Relatives paths addition #1

Closed impeeza closed 2 months ago

impeeza commented 3 years ago

Hi, actually the path for the quests is hardcoded to sdmc:/switch/solarus/games will be nice if the path is relative to the actual location of NRO, by example if I put the NRO file on sdmc:/switch/SolarusEngine then search for games on sdmc:/switch/SolarusEngine/games folder.

Thanks for all your work, regards from Colombia.

impeeza commented 3 years ago

as I was saying my coding skills are very simple, but on a light reading of code, I did find:

On src\core\QuestFiles.cpp file there is a function called get_base_write_dir() used on several pieces of code to get different directories related to base (actual) dir, but on /src/switch/switch_gui_main.cpp and /src/switch/back/switch_gui.cpp the path is hard coded. can the function get_base_write_dir() be used on the switch .cpp files? regards.

impeeza commented 3 years ago

¿any advance?

impeeza commented 2 months ago

Sorry the repo is stalled, it's a great work