ToransuShoujo / quesoqueue_plus

A queue system for Mario Maker 2
GNU General Public License v3.0
5 stars 3 forks source link

Fix queue crash when run for first time #20

Closed liquidnya closed 2 years ago

liquidnya commented 2 years ago

When the queue is run for the very first time, the files waitingUsers.txt and userWaitTime.txt are created, but it's contents is not loaded and then the queue crashes after a while. This will load the contents of the files after they have been created.

liquidnya commented 2 years ago

This will add a simple custom codes test case.

liquidnya commented 2 years ago

This will also change the following behavior:

I changed it to just let it crash. In case one of the files is corrupt the user of the queue will be notified with the crash, and they can decide to delete the corrupted file or to restore from a backup or maybe they can manually save the data.