17 if (a_form_id_string.empty()) {
21 if (a_form_id_string.find(
'|') != std::string::npos) {
22 std::istringstream ss{ a_form_id_string };
23 std::string plugin, id;
24 std::getline(ss, plugin,
'|');
27 if (plugin.empty() ||
id.empty()) {
31 RE::FormID rawFormID{};
32 std::istringstream(
id) >> std::hex >> rawFormID;
38 if (
auto* dataHandler = RE::TESDataHandler::GetSingleton()) {
39 auto* form = dataHandler->LookupForm(rawFormID, plugin);
45 if (
auto* form = RE::TESForm::LookupByEditorID(a_form_id_string)) {