Open gynt opened 9 months ago
Currently, GAME_FOLDER_ATOM
has a companion GAME_FOLDER_INTERFACE_ASYNC_ATOM
.
The interface atom should be used to set the game folder, as is currently the case always I believe.
The final action of the interface atom is to set the game folder atom.
The setter logic though should also clear any existing state in order to be able to start from scratch, which it currently doesn't do I believe (it borrows the existing extensions state).
set(GAME_FOLDER_INTERFACE_ASYNC_ATOM, 'folder path') => initialize game folder
Set a loading indicator
The game folder atom should be used by the ucp state atom (which it is I believe) The ucp state atom should be used by the initializeGameFolder function. The latter is now included in the game folder atom but that is a little strange since interpreting a game folder only makes sense if it is a verified ucp installation
end goal: not need a refresh after installation