aoineko-fr / MSXgl

The MSX Game Library in C language
113 stars 9 forks source link

( was unexpected at this time #13

Closed Nauja closed 2 years ago

Nauja commented 2 years ago

I'm submitting a ...

What is the current behavior?

Running build.bat with DoRun=1 without configuring the emulator path in default_config.cmd results in an obscure error message ( was unexpected at this time for newcommers.

This happens because setup_emulator.cmd checks if /I %EmulatorName%==openmsx, but when EmulatorName is empty it is replaced with if /I ==openmsx, hence the ( was unexpected at this time error message.

The script should check if EmulatorName is set beforehand and display a clear error message to the user.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

The script displays a clear error message of what happened.

Please tell us about your environment:

Version: 16d84fc3d55b0b4d4dd8f07ca00fedf0b12a6210 OS: Windows

aoineko-fr commented 2 years ago

I have corrected this problem with this invalid parameter combination.