New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is possible to run the rescannewgrf
command while NewGRFs are being scanned.
#8874
Comments
actually, what should happen is that the current scan gets cancelled and restarted. |
Extremely difficult to cancel a scan in progress. Would require interruptible functions of some sort. Best to just error if it's already in progress, imo |
NewGRF scan is already protected not two can run at the same time. The bug here appears to be that the user is not notified of this "I ignored you" :D |
…iple times from the console
Regarding the cancelling of the NewGRF scan; that is, with the current design kind of pointless. The actual scanning runs in the GameLoop thus locking all UI updates, so the second rescannewgrf is either processed before it actually starts the scanning or it is processed after the rescan has been performed. In neither case cancelling is needed. |
…iple times from the console (OpenTTD#9022)
Version of OpenTTD
379b6b4
Expected result
One or more of the following:
rescannewgrf
command, the console loses focus until the command completes.rescannewgrf
command, the command should output an error if it detects that NewGRFs are still being scanned.rescannewgrf
command, the NewGRF scan is cancelled and restarted (@Eddi-z).Actual result
When you run the
rescannewgrf
command while newgrfs are still being scanned, the command silently aborts, without printing an error. This may be related to #6589.Steps to reproduce
clear
.rescannewgrf
, then hit the Enter key.rescannewgrf
command and no error, even though NewGRFs were only scanned once.The text was updated successfully, but these errors were encountered: