Re: Finding Devotional modules
"David \"Judah's Shadow\" Blue" <[email protected]>
| Newsgroups | gmane.comp.literature.sword.devel |
|---|---|
| Message-ID | <5379029.iOTeWdk5DA@brooks> |
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: [email protected]
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page