From mint-bounce@lists.fishpool.fi Sun Mar 7 18:01:53 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:message-id:references:to :x-mailer; bh=KvpgV1MyNxr3IIp8L+LD6Tq31Q62z4NURns4C08yiGo=; b=xR1xUdoA9ZTQgCDZ6eCo4QSlB0sprD25UHo6s90dUfM8BcugaujlG5S7wvrzTpQqIu 4dNYSZI81g6ED/t3m6syYKl3p5dcHBftR9ll4xsuMXA4dqAS2uwLBSsPJRWJ8oLKeWNI 4l926AeIHjqEaCvFBlFjKTCLH9cP8YsBEDFTE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=BsH18KOZahVF/oMTyx47eKmV/qsM5twN12SEkccZ3ZEHdin9kidLROXzqSTLrdDUl1 3JcvKKuyXutdcn2RpagzCBM/Ga3QnXzhCvOiFpLGCSZkfJk9B4dIAmKkzv39eIOpv1SL mO6o5Xxw4lsD4U5K0yM2hWeIdh6dTxfvIVD8U= Subject: Re: [MiNT] Patch for xaloader.prg Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/alternative; boundary=Apple-Mail-2--214733677 From: Peter Persson In-Reply-To: Date: Sun, 7 Mar 2010 23:59:18 +0100 Cc: Patrice Mandin , mint Mailing-List Message-Id: <0D259770-D6AF-408E-B721-2BD14DA6E237@gmail.com> References: <72454075-6FA5-46CA-A174-A3AE573771A6@gmail.com> <20100301222525.bcb94ec5.mandin.patrice@orange.fr> <04F5AE6B-D53F-4EE1-BA57-9BA46392BD13@gmail.com> <1B8C9039-CFB4-4675-9E79-5D1CC4F54DAC@gmail.com> To: Miro Kropacek X-Mailer: Apple Mail (2.1077) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --Apple-Mail-2--214733677 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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? =46rom 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= --Apple-Mail-2--214733677 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
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? = =46rom 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
= --Apple-Mail-2--214733677--