mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
parent
4ae26a308c
commit
eb044e13ca
@ -114,7 +114,10 @@ ReadConfig ()
|
|||||||
{
|
{
|
||||||
const auto config = GetBaseDir () + "data/config.json";
|
const auto config = GetBaseDir () + "data/config.json";
|
||||||
|
|
||||||
std::ifstream file (config, std::ifstream::in);
|
std::ifstream file (config, std::ifstream::in);
|
||||||
|
if (!file)
|
||||||
|
return false;
|
||||||
|
|
||||||
nlohmann::json j;
|
nlohmann::json j;
|
||||||
file >> j;
|
file >> j;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user