updated to the new Pikotools api (new Space struct)
This commit is contained in:
@@ -77,16 +77,16 @@ void ReloadConfigFile(PluginInfo & info, Item & file)
|
||||
PT::SpaceParser parser;
|
||||
|
||||
parser.SetSpace(space);
|
||||
PT::SpaceParser::Status status = parser.ParseString(file.item_content.content_raw);
|
||||
PT::SpaceParser::Status status = parser.ParseSpace(file.item_content.content_raw);
|
||||
|
||||
if( status == PT::SpaceParser::syntax_error )
|
||||
{
|
||||
info.log << log1 << "MR: syntax error in file: " << file.url << ", line: " << parser.line << " (skipping this file)" << logend;
|
||||
info.log << log1 << "MR: syntax error in file: " << file.url << ", line: " << parser.get_last_parsed_line() << " (skipping this file)" << logend;
|
||||
}
|
||||
else
|
||||
if( status == PT::SpaceParser::ok )
|
||||
{
|
||||
std::wstring * list_id_str = space.GetFirstValue(L"list_id");
|
||||
std::wstring * list_id_str = space.get_wstr(L"list_id");
|
||||
|
||||
if( list_id_str )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user