diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /pipermail/nel/2001-March/000365.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'pipermail/nel/2001-March/000365.html')
-rw-r--r-- | pipermail/nel/2001-March/000365.html | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/pipermail/nel/2001-March/000365.html b/pipermail/nel/2001-March/000365.html new file mode 100644 index 00000000..5730e6b9 --- /dev/null +++ b/pipermail/nel/2001-March/000365.html @@ -0,0 +1,81 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Nel] 'data/' bug</TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:lecroart%40nevrax.com"> + <LINK REL="Previous" HREF="000363.html"> + <LINK REL="Next" HREF="000366.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Nel] 'data/' bug</H1> + <B>Vianney Lecroart</B> + <A HREF="mailto:lecroart%40nevrax.com" + TITLE="[Nel] 'data/' bug">lecroart@nevrax.com</A><BR> + <I>Wed, 7 Mar 2001 14:25:17 +0100</I> + <P><UL> + <LI> Previous message: <A HREF="000363.html">[Nel] here's the landscape.cpp patch I used</A></li> + <LI> Next message: <A HREF="000366.html">[Nel] newbies about packet schema</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#365">[ date ]</a> + <a href="thread.html#365">[ thread ]</a> + <a href="subject.html#365">[ subject ]</a> + <a href="author.html#365">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Hi there! + +We, at last, understood the problem of the 'data/' bug on linux. +In fact, in our rawdatafiles, there are some empty file names and in our +program, we try to find where these files are located. +For that, we use a function (CPath::lookup()) that tries to find the file in +all directories provided before by the user. +To know if a file exists, we try to open it and if the opening success, we +return true (CFile::fileExists()). +When the prog tries to find the file "", first it calls fileExists("") that +returns false. +Next step, it tries with the first directory in his list, +fileExists("data/"+""); On windows, the OS can't open the directory +("data/") +so it returns false. On linux, it can, so it returns true and the program +tries to read the directory as if it was +a texture, and of course, it fails (end of file). + +We fixed the problem by adding this next line in the top of the function +string CPath::lookup( const string& filename ) in path.cpp: + + if(filename.empty()) + throw EPathNotFound( filename ); + +Of course, we put it on cvs and it will be synchronized this night (GMT+1). + + +Vianney Lecroart +--- +lead network programmer / nevrax.com +icq#: 6870415 +homepage: <A HREF="http://ace.planet-d.net">http://ace.planet-d.net</A> +www.geekcode.com: GCS/E d- s+++: a-- C+++$ UL++ P- L+++>+$ E+>- W++ N+ o? K- +w++$ O- M- V- PS- PE? Y PGP t 5? X+ R- tv++ b- DI D+ G e++ h+ r-- y? + + + +</pre> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI> Previous message: <A HREF="000363.html">[Nel] here's the landscape.cpp patch I used</A></li> + <LI> Next message: <A HREF="000366.html">[Nel] newbies about packet schema</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#365">[ date ]</a> + <a href="thread.html#365">[ thread ]</a> + <a href="subject.html#365">[ subject ]</a> + <a href="author.html#365">[ author ]</a> + </LI> + </UL> +</body></html> |