MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Scenario_Load_General

Function Scenario_Load_General

src/scenario.c:32–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30static void *s_scenarioBuffer = NULL;
31
32static 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
50static void Scenario_Load_House(uint8 houseID)
51{

Callers 1

Scenario_LoadFunction · 0.85

Calls 2

Ini_GetIntegerFunction · 0.85
Ini_GetStringFunction · 0.85

Tested by

no test coverage detected