leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
278 stars 52 forks source link

OpenBVE v19.1.0 fails to launch on macOS #900

Closed andylin2004 closed 1 year ago

andylin2004 commented 1 year ago

Description

OpenBVE fails to open on v1.9.1.0 on macOS. OpenBVE will briefly run before it gets to this line and closes itself out with no crash logging occurring. I can comment out this line of code to fix it, but I kinda want to know what the point of this line is first before doing such a thing.

Reproduction

Simply launch OpenBVE v1.9.1.0 on a macOS machine. OpenBVE will briefly open up, but ends up closing itself.

Related information

andylin2004 commented 1 year ago

This is the error Visual Studio throws:

Screenshot 2023-05-30 at 10 40 24 AM
leezer3 commented 1 year ago

Really odd :/

That was added as we've got some Korean developers who want to take raw keyboard input, which required an API parameter to block the main sim.

This is going to be with the GL3 menu isn't it? Might want an in-game check in that case as the player train may be null at that point- Will think about it properly when back from work.