+
+int main(int argc, char **argv) {
+
+ hgw_context = hgw_context_compat_init(argc, argv);
+ if (!hgw_context) {
+ printf("Cannot init hildon-games-startup!\n");
+ return 0;
+ }
+
+ hgw_compat_set_cb_exit(hgw_context, exit_callback);
+ hgw_compat_set_cb_quit(hgw_context, quit_callback);
+ hgw_compat_set_cb_flush(hgw_context, flush_callback);
+ if(!hgw_context_compat_check(hgw_context)) return 0;
+
+ /* hildon-games-wrapper part */
+ hgw_msg_compat_receive(hgw_context, 0);
+ usleep(100);
+
+ // Main game
+ play();
+
+ // hgw_context_compat_destroy_deinit(hgw_context);
+ // hgw_context_compat_destroy_quit(hgw_context);
+ // hgw_context_destroy(hgw_context);
+ hgw_context_destroy(hgw_context, HGW_BYE_INACTIVE);
+
+ return 0;
+}
+