delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "Rod Pemberton" <boo AT fasdfrewar DOT cdm> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Detecting the presence of doslfn? |
Date: | Wed, 10 Jun 2015 06:24:56 -0400 |
Organization: | Aioe.org NNTP Server |
Lines: | 48 |
Message-ID: | <op.xz0e7uo2yfako5@localhost> |
References: | <201506091712 DOT t59HCPci004068 AT delorie DOT com> |
<557739E0 DOT 6070608 AT gmail DOT com> | |
NNTP-Posting-Host: | n4wpt9zq8xR26Ttf9mo2BA.user.speranza.aioe.org |
Mime-Version: | 1.0 |
X-Complaints-To: | abuse AT aioe DOT org |
User-Agent: | Opera Mail/12.16 (Linux) |
X-Notice: | Filtered by postfilter v. 0.8.2 |
Bytes: | 2585 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Tue, 09 Jun 2015 15:09:20 -0400, Frank Sapone (emoaddict15 AT gmail DOT com) <djgpp AT delorie DOT com> wrote: > Hello DJGGP developers, > > I am not quite sure if this is the proper mailing list.. If it's in the > wrong place I apologize. > > A friend and I have ported Quake 2 to DOS and it works rather well but > the one issue is long filenames. Using doslfn works OK, but I would > like to be able to detect the presence of doslfn. I see theres some lfn > functions in the libc but I am unsure if there's just a specific test > function for LFN. > I posted the function I prefer to use for this here in 2005 ... You can use the LFN 0x71A0 function to detect the presence of LFN. I posted the routine for this to comp.os.msdos.djgpp back in 2005: https://groups.google.com/d/msg/comp.os.msdos.djgpp/BiwXYtw4pjA/8Boz2Bb9K2EJ If you need it to support OpenWatcom too, then see my 2004 post: https://groups.google.com/d/msg/openwatcom.users.c_cpp/st05gRWzWfU/XmNxBSv2IaAJ You can see other DJGPP and OpenWatcom LFN function implementations at these links: rpmunpac w/LFN comp.os.msdos.djgpp 2005 https://groups.google.com/d/msg/comp.os.msdos.djgpp/O8jQn1GbrmU/3Fr5LQbE2gcJ lfntst.c comp.os.msdos.programmer 2012 https://groups.google.com/d/msg/comp.os.msdos.programmer/u93Wmse0Ypg/mK6ZKKpL7c8J port of Chris Giese's LBA bios disk routines openwatcom.users.c_cpp 2005 https://groups.google.com/d/msg/openwatcom.users.c_cpp/x9sliO9Y5KQ/vLwJ-3sekpEJ The latter was on OpenWatcom's website as: "Accessing_the_Harddisk_using_LBA_under_DPMI" Rod Pemberton -- If fewer guns reduced murders, how does one explain Moscow, Chicago, New York, and South Africa?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |