TexConv/config.cpp

26 lines
440 B
C++
Raw Normal View History

2019-11-26 17:27:48 +08:00
#include"config.h"
#include"json_tools.h"
#include<iostream>
#include<hgl/log/LogInfo.h>
#include<hgl/type/BaseString.h>
using namespace hgl;
namespace
{
static FormatConfig fc[FormatType::RANGE_SIZE];
}//namespace
bool LoadConfig(const OSString &filename)
{
Json::Value js;
if(!LoadJson(js,filename))
{
LOG_ERROR(OS_TEXT("load config file<")+filename+OS_TEXT("> failed."));
return(false);
}
}