Open Ghoulboy78 opened 3 years ago
You mean the clipboard to disc or the virtual clipboard?
Tbh I'd just store it directly as a structure file but in memory, and make the structure save command just write it to a file, making it simpler to save any of the two (a selection/an already existing clipboard, since saving current selection would basically call "make" a clipboard then save).
That would also make it simpler to at some point save the clipboards when closing/restarting/leaving the server, just write_file
and that's it.
Cos right now it's not particularly efficient. I think I'lll store in a similar way to structure files etc.