At present it is impossible to load content with the core. This is because:
1) The core incorrectly sets need_fullpath = false, when it absolutely does need the full content path
2) Regardless of whether a valid content path is given, It fails to load content if the frontend passes a content data buffer - which will always be the case, since need_fullpath = false....
This trivial PR fixes this content load issue. It also:
Prevents a segfault when an invalid content path is provided
Prevents a segfault when loading content successively
Fixes a few of the more obvious memory leaks (there are a great many of these...)
It should be noted that this core is in a rather sorry state, and needs a large amount of polishing. But at least it can now load content....
At present it is impossible to load content with the core. This is because:
1) The core incorrectly sets
need_fullpath = false
, when it absolutely does need the full content path 2) Regardless of whether a valid content path is given, It fails to load content if the frontend passes a content data buffer - which will always be the case, sinceneed_fullpath = false
....This trivial PR fixes this content load issue. It also:
It should be noted that this core is in a rather sorry state, and needs a large amount of polishing. But at least it can now load content....