IMGfind(NPKobject类成员函数) - Lucky-Koishi/KoishiExAPI GitHub Wiki
namespace Koishi;
└class NPKobject;
└bool IMGfind(const str &keyword, b32 &pos);
└bool IMGfind(const str &keyword, const str &nonkeyword, b32 &pos);
const str &keyword:检索关键字;
const str &nonkeyword:过滤关键字;
b32 &pos:存储检索结果。
若存在符合要求的全路径名,则返回true。
在IMG索引表中,检索含有keyword(且不含有nonkeyword)的全路径名,若存在匹配项,则将该项的位置存储在pos中并返回true;若不存在匹配项,则返回false。