Re: Method patch example request...ideas?
Posted: Thu May 30, 2013 1:17 am
Have a look at the; interfaces/dos.h file, there are 6 different loadseg vectors that can be called.Belxjander wrote:I'm aware of LoadSeg NewLoadSeg and InternalLoadSeg for 68K
Other than the LoadSeg documented in the Autofocus for DPS.library I have not seen other vectors...
Excluding 68K loadables with OBSOLETEInternalLoadSeg(), you can reduce that to about 5 slots;
OBSOLETENewLoadSeg(), OBSOLETENewLoadSegTagList(), OBSOLETENewLoadSegTags(), OBSOLETELoadSeg(), LoadSeg()
Until dos.library 53.74 most of those were duplicate code and needed to be patches separately.
After 53.74, the OBSOLETENewLoadSegTags functions calls the OBSOLETENewLoadSegTagList function internally,
and those stubs now just call LoadSeg(), and if it is not an overlay hunk loadables, which calls OBSOLETELoadSeg(),
it will now call LoadSeg().
So, you really need to do version checks.