MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / loadConfig

Function loadConfig

Source/Main.cpp:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 void loadConfig()
83 {
84 const std::string fileName = "HopsonCraft.conf";
85 std::ifstream inFile (fileName);
86
87 if(inFile.is_open())
88 {
89 Singleton<Config>::get().loadFromStream(fileName, inFile);
90 }
91 }
92
93
94 void runGame()

Callers 1

runGameFunction · 0.85

Calls 1

loadFromStreamMethod · 0.80

Tested by

no test coverage detected