[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Patch for xaloader.prg




On 7 mar 2010, at 23.10, Miro Kropacek wrote:

Peter, I've tested your loader today, it more or less works but I'm not sure what's the proper method of compiling it? From my understanding, this should be classic executable for TOS, with main() and friends but apparently it is not, there's only loader_init() function. When I replace it with main(), it works, but it ignores mint.ini...

Ah! Well, make a copy of the xaloader directory. Copy my loader into xaloader.c.

Btw there's no need to "reinvent" own functions like getcookie() or strcpy(), it's everything in mintlib already.

The reason for doing it the same way as xaloader.prg is that it gives a ~3k binary... and this is how it's done in xaloader.prg, so I figured it was a good idea - maybe it wasn't? :-)

-- PeP