Skip to content

Commit

Permalink
Client|Script: Added the script binding App.quit()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 17, 2014
1 parent 30d05b2 commit cda00fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doomsday/client/src/clientapp.cpp
Expand Up @@ -115,6 +115,12 @@ static Value *Function_App_LoadFont(Context &, Function::ArgumentValues const &a
return 0;
}

static Value *Function_App_Quit(Context &, Function::ArgumentValues const &)
{
Sys_Quit();
return 0;
}

DENG2_PIMPL(ClientApp)
{
Binder binder;
Expand Down Expand Up @@ -294,7 +300,8 @@ ClientApp::ClientApp(int &argc, char **argv)

d->binder.init(scriptSystem().nativeModule("App"))
<< DENG2_FUNC_NOARG (App_GamePlugin, "gamePlugin")
<< DENG2_FUNC (App_LoadFont, "loadFont", "fileName");
<< DENG2_FUNC (App_LoadFont, "loadFont", "fileName")
<< DENG2_FUNC_NOARG (App_Quit, "quit");
}

void ClientApp::initialize()
Expand Down

0 comments on commit cda00fa

Please sign in to comment.