equal
deleted
inserted
replaced
11 extern "C" { |
11 extern "C" { |
12 RunEngine_t *flibRunEngine; |
12 RunEngine_t *flibRunEngine; |
13 registerGUIMessagesCallback_t *flibRegisterGUIMessagesCallback; |
13 registerGUIMessagesCallback_t *flibRegisterGUIMessagesCallback; |
14 setSeed_t *flibSetSeed; |
14 setSeed_t *flibSetSeed; |
15 getSeed_t *flibGetSeed; |
15 getSeed_t *flibGetSeed; |
|
16 setTheme_t *flibSetTheme; |
16 getPreview_t *flibGetPreview; |
17 getPreview_t *flibGetPreview; |
17 runQuickGame_t *flibRunQuickGame; |
18 runQuickGame_t *flibRunQuickGame; |
18 runLocalGame_t *flibRunLocalGame; |
19 runLocalGame_t *flibRunLocalGame; |
19 flibInit_t *flibInit; |
20 flibInit_t *flibInit; |
20 flibFree_t *flibFree; |
21 flibFree_t *flibFree; |
43 |
44 |
44 flibRunEngine = (RunEngine_t*) hwlib.resolve("RunEngine"); |
45 flibRunEngine = (RunEngine_t*) hwlib.resolve("RunEngine"); |
45 flibRegisterGUIMessagesCallback = (registerGUIMessagesCallback_t*) hwlib.resolve("registerGUIMessagesCallback"); |
46 flibRegisterGUIMessagesCallback = (registerGUIMessagesCallback_t*) hwlib.resolve("registerGUIMessagesCallback"); |
46 flibSetSeed = (setSeed_t*) hwlib.resolve("setSeed"); |
47 flibSetSeed = (setSeed_t*) hwlib.resolve("setSeed"); |
47 flibGetSeed = (getSeed_t*) hwlib.resolve("getSeed"); |
48 flibGetSeed = (getSeed_t*) hwlib.resolve("getSeed"); |
|
49 flibSetTheme = (setTheme_t*) hwlib.resolve("setTheme"); |
48 flibGetPreview = (getPreview_t*) hwlib.resolve("getPreview"); |
50 flibGetPreview = (getPreview_t*) hwlib.resolve("getPreview"); |
49 flibRunQuickGame = (runQuickGame_t*) hwlib.resolve("runQuickGame"); |
51 flibRunQuickGame = (runQuickGame_t*) hwlib.resolve("runQuickGame"); |
50 flibRunLocalGame = (runLocalGame_t*) hwlib.resolve("runLocalGame"); |
52 flibRunLocalGame = (runLocalGame_t*) hwlib.resolve("runLocalGame"); |
51 flibInit = (flibInit_t*) hwlib.resolve("flibInit"); |
53 flibInit = (flibInit_t*) hwlib.resolve("flibInit"); |
52 flibFree = (flibFree_t*) hwlib.resolve("flibFree"); |
54 flibFree = (flibFree_t*) hwlib.resolve("flibFree"); |
200 |
202 |
201 void HWEngine::changeTeamColor(const QString &teamName, int dir) |
203 void HWEngine::changeTeamColor(const QString &teamName, int dir) |
202 { |
204 { |
203 flibChangeTeamColor(teamName.toUtf8().constData(), dir); |
205 flibChangeTeamColor(teamName.toUtf8().constData(), dir); |
204 } |
206 } |
|
207 |
|
208 void HWEngine::setTheme(const QString &theme) |
|
209 { |
|
210 flibSetTheme(theme.toUtf8().constData()); |
|
211 } |