So in order to do that, we have to add a column with the detection for *.sprx to show the list of sprx files located in the plugin folder and a side menu for slot sections so every time you select the plugin you want to add, it will pull sidemenu for available unused slots to use.
And after assigning the plugin to the slot then let it reboot when exiting so it would apply the newly added plugins
Sounds like doable.
Sent from my iPhone using Tapatalk
Just a couple of picky details probably you thought in them but anyway...
It could happen that the user has a path in boot_plugins.txt for a .sprx file that doesnt exists
To solve this problem you can delete its path before doing anything else... after checking for the .sprx files you need to compare them with the paths in boot_plugins.txt and if the problem im mentioning is detected then delete the incorrect path
Also, because you have to prepare some kind of menu to display all slots, and the user could add plugins, then remove, then he is not happy and deletes them again to reorder them etc...
Are so many changes... so to avoid rewriting the file boot_plugins.txt lot of times is better to add at bottom of the menu something like "save changes and exit", this way the file boot_plugins.txt is written only 1 time
At coding i think could be made by using an string array with the 8 cobra slots and store in it the paths temporally until the user clicks in the "save and exit" button then you save the array in the boot_plugins.txt
Edit:
Hmmm, if you are not going to display the contents of the original boot_plugins.txt then there is no need to make the comparison at beginning
Is easyer to rewrite the contents of boot_plugins.txt completlly (never minds what there was inside it)
Only scenario where could be needed a check to avoid unneeded writes is if the resulting list is the same than the original
Lets say an user enters in the menu... does lot of changes and at some point he forgets how it was originally but he is configuring it exactlly as like the original (without noticing) and he clicks in the "save and exit"
Then the comparison could come in handy because is not needed to modify the file boot_plugins.txt
Also... is the same scenario if an users enters in the menu... doesnt changes anything... and clicks in the button "save and exit"... in this case there is no need to rewrite boot_plugins.txt
Dunno, i think this way is better, but this comparison is not much needed anyway, im just being picky