m1maker / SRAL

Screen Reader Abstraction Library
MIT License
8 stars 2 forks source link

Add a get_last_error function that returns a string #7

Closed Keithcat1 closed 2 months ago

Keithcat1 commented 2 months ago

So users have an error message to report when the game stops talking for no obvious reason.

m1maker commented 2 months ago

Hello. I don't think this is necessary. If you don't talk to NVDA or Jaws, SAPI will be used. If it fails to initialize, UIANotification will be used. The only thing is that for Linux there is only SpeechDispatcher so far, and I should probably do something else. If nothing is available, you can check SRAL_GetCurrentEngine, and if something goes wrong and there is no engine available, it will return ENGINE_NONE. Although I don't know what needs to happen for this to happen. However, this will be an error on the side of the system, not the library.