SharedState: Throw exception on errors (and handle them)
First up: throw if chdir(gameFolder) fails.
This commit is contained in:
parent
9759e52b3c
commit
680e407a38
3 changed files with 50 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue