On Monday, March 11, 2024 4:53:29 PM EDT David "Judah's Shadow" Blue wrote: > I had posed a question a while ago, but never got an answer, or at least > didn't see it if I did, about how to tell if a module is a daily devotion. > > sword::SWMgr::MODTYPE_DAILYDEVOS doesn't seem to ever match for the module > type. I'd like to have special handling of devotionals for the next version > of BIBISH.
After grepping around in the BibleTime source code, I settled on using their solution of using module category and/or features showing the module is a devotional. I'm doing the following assignment category = tempMod->getConfigEntry("Category"); If category is a std::string I get a segfault. If category is a const char* it works. Is there some reason the return value of getConfigEntry isn't compatible with std::string in this instance? Or have I found a magic/more magic switch? _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page