okay nice feature i will try it. when its done i dont need the license.dat on my sd card right?
You do... All this feature does, is regenerate it for example if you put another SD in. So, if it is there, nothing will be done...
If licence.dat isn`t there, and you make one without implanting yours in the UF2, the generated one will be just SXOSSXOSSXOS etc for 256 bytes.
So, download UF2, open hex editor, find the SXOSSXOS etc string in the hex editor, in another tab, open your licence.dat... copy/paste over the bytes which say SXOS (nothing else!) You will find it will fit perfectly, covering all the SXOS text. If it doesn`t cover it completely, or goes over too much, you have copy/pasted wrong/too much / too little bytes.
Undo and try again.
To try it, rename your current one on your SD to anything else and try to generate it.
If done right, it will be byte-for-byte identical to the other one.
I did this feature ages ago for Simple-UF2, but didn`t want to open a can of worms. But I thought "f*ck it"...