PokemonWorkshop / PokemonStudio

Pokémon Studio is a monster taming game editor which helps you to bring your ideas to life, in just a few clicks.
https://pokemonworkshop.com/
Other
93 stars 5 forks source link

Remove the implementation of path functions from the front end and use path functions from the backend #340

Open Palbolsky opened 6 days ago

Palbolsky commented 6 days ago

Description

When the front end has been separated from the backend before the version 2.0, the path functions (join, basename, etc.) has been reimplemented in the front end. It was very bad idea, because the implementation is not rigorous and the same functions is available in the backend.

So, we need remove the path functions from the front end and use the path function from the backend. We need use window.api to communicate between the front and the backend.

Note: With the transfert of data management in the backend (therefore deleting the global state), the manipulation of the path will be maybe transfert in the backend. If it's the case, this task could be useless.