Mercurial > molko
comparison libmlk-adventure/adventure/molko.c @ 263:cd5bdb995052
cmake: create a new libmlk-data library
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 08 Dec 2020 17:00:03 +0100 |
parents | bfde372bf152 |
children | 11db1d425502 |
comparison
equal
deleted
inserted
replaced
262:afdeafb82c22 | 263:cd5bdb995052 |
---|---|
77 /* Init unrecoverable panic state. */ | 77 /* Init unrecoverable panic state. */ |
78 molko.panic = panic_state_new(); | 78 molko.panic = panic_state_new(); |
79 panic_handler = crash; | 79 panic_handler = crash; |
80 | 80 |
81 /* Start to splash. */ | 81 /* Start to splash. */ |
82 game_switch(splashscreen_state_new(), true); | 82 //game_switch(splashscreen_state_new(), true); |
83 game_switch(mainmenu_state_new(), true); | |
83 } | 84 } |
84 | 85 |
85 void | 86 void |
86 molko_run(void) | 87 molko_run(void) |
87 { | 88 { |
108 const char * | 109 const char * |
109 molko_path(const char *file) | 110 molko_path(const char *file) |
110 { | 111 { |
111 assert(file); | 112 assert(file); |
112 | 113 |
113 /* TODO: libmlk-adventure must be renamed. */ | 114 return util_pathf("%s/mlk-adventure/%s", sys_dir(SYS_DIR_DATA), file); |
114 return util_pathf("%s/libmlk-adventure/%s", sys_dir(SYS_DIR_DATA), file); | |
115 } | 115 } |
116 | 116 |
117 void | 117 void |
118 molko_finish(void) | 118 molko_finish(void) |
119 { | 119 { |