| 30 | static void *s_scenarioBuffer = NULL; |
| 31 | |
| 32 | static void Scenario_Load_General(void) |
| 33 | { |
| 34 | g_scenario.winFlags = Ini_GetInteger("BASIC", "WinFlags", 0, s_scenarioBuffer); |
| 35 | g_scenario.loseFlags = Ini_GetInteger("BASIC", "LoseFlags", 0, s_scenarioBuffer); |
| 36 | g_scenario.mapSeed = Ini_GetInteger("MAP", "Seed", 0, s_scenarioBuffer); |
| 37 | g_scenario.timeOut = Ini_GetInteger("BASIC", "TimeOut", 0, s_scenarioBuffer); |
| 38 | g_minimapPosition = Ini_GetInteger("BASIC", "TacticalPos", g_minimapPosition, s_scenarioBuffer); |
| 39 | g_selectionRectanglePosition = Ini_GetInteger("BASIC", "CursorPos", g_selectionRectanglePosition, s_scenarioBuffer); |
| 40 | g_scenario.mapScale = Ini_GetInteger("BASIC", "MapScale", 0, s_scenarioBuffer); |
| 41 | |
| 42 | Ini_GetString("BASIC", "BriefPicture", "HARVEST.WSA", g_scenario.pictureBriefing, 14, s_scenarioBuffer); |
| 43 | Ini_GetString("BASIC", "WinPicture", "WIN1.WSA", g_scenario.pictureWin, 14, s_scenarioBuffer); |
| 44 | Ini_GetString("BASIC", "LosePicture", "LOSTBILD.WSA", g_scenario.pictureLose, 14, s_scenarioBuffer); |
| 45 | |
| 46 | g_viewportPosition = g_minimapPosition; |
| 47 | g_selectionPosition = g_selectionRectanglePosition; |
| 48 | } |
| 49 | |
| 50 | static void Scenario_Load_House(uint8 houseID) |
| 51 | { |
no test coverage detected