refractoring to use osso-game-startup
[mancala] / src / launcher / mancala-launcher.c
1 /*
2 * This file is part of Mancala
3 *
4 * Idea from Crazyparking
5 *
6 * Copyright (c) 2009 Reto Zingg
7 *
8 * This software is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
12 *
13 * This software is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this software; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 */
23
24 #include <stdio.h>
25 #include <unistd.h>
26
27 char *wrapper_args[] = {"/usr/games/wrapper/wrapper",
28                         "/home/opt/mancala/data/mancala.game",
29                         NULL};
30
31 int main(int argc, char *argv[])
32 {
33     
34     if (execv ("/usr/games/wrapper/wrapper", wrapper_args) == -1) {
35         printf("Launching mancala wrapper failed\n");
36     }
37
38     return 0;
39 }