SharedState: Throw exception on errors (and handle them)

First up: throw if chdir(gameFolder) fails.
This commit is contained in:
Jonas Kulla 2013-12-30 01:26:39 +01:00
parent 9759e52b3c
commit 680e407a38
3 changed files with 50 additions and 6 deletions

View file

@ -106,6 +106,9 @@ struct SharedState
void checkShutdown();
static SharedState *instance;
/* This function will throw an Exception instance
* on initialization error */
static void initInstance(RGSSThreadData *threadData);
static void finiInstance();