Raydium 3D Game Engine
http://memak.raydium.org/

file open 't' flag
http://memak.raydium.org/viewtopic.php?f=8&t=2022
Page 1 of 1

Author:  ouille [ Tue Oct 13, 2009 7:16 am ]
Post subject:  file open 't' flag

Hello,

What is the meaning on 't' flag on raydium_file_open mode ?

r read / w write / l local but 't' ???

Have a nice day
Ouille

Author:  st [ Tue Oct 13, 2009 4:06 pm ]
Post subject:  Re: file open 't' flag

ouille wrote:
What is the meaning on 't' flag on raydium_file_open mode ?
I think 't' stands for text, as 'b' stands for binary mode.

Author:  Xfennec [ Wed Oct 14, 2009 6:14 pm ]
Post subject:  Re: file open 't' flag

Exactly. In this mode, functions won't care about "end of line" style. Unix, as most other OS families use LF (including MacOS, now), but DOS/win use CRLF. Explanation for this is somewhere back in the 60' / 70' ! :)

Author:  ouille [ Wed Oct 14, 2009 7:09 pm ]
Post subject:  Re: file open 't' flag

Hello,

FOUND IT !!!!!

Vista does not support 'l' flag. For this reason even download or created conf file won't load.

It an vista only "feature".

I'll correct it shortly but i have conflicts with this correction and my working copy of file.c

Is there a string fucntion to remove a char from a string ?

Have a nice day.
Ouille

Author:  st [ Wed Oct 14, 2009 7:40 pm ]
Post subject:  Re: file open 't' flag

ouille wrote:
Vista does not support 'l' flag. For this reason even download or created conf file won't load.
Are you sure? I thought that the 'l' flag is a Raydium internal flag to load only local files and that the engine then doesn't try to download the files from the repository.
This seems to be a cross-platform feature and is apart from Vista or any other operating system.

Author:  Xfennec [ Wed Oct 14, 2009 7:55 pm ]
Post subject:  Re: file open 't' flag

I'm afraid to understand ... vista's fopen() refuse to work when an unsupported flag is present in the flag string ? Well, that's what I call backward compatibility ...

I'll add a raydium_parser_remove() function in a few minutes.

Author:  Xfennec [ Wed Oct 14, 2009 8:30 pm ]
Post subject:  Re: file open 't' flag

Added, rev 905.

Author:  ouille [ Wed Oct 14, 2009 9:02 pm ]
Post subject:  Re: file open 't' flag

Hello,

Corrected.

Here is a patch about new package handling.

It's a bit heavy, can you check it for comment before commit ?

Have a nice day.
Ouille

edit: typo

Attachments:
File comment: package_patch
package_v2.zip [4.73 KiB]
Downloaded 254 times

Author:  Xfennec [ Wed Oct 14, 2009 9:52 pm ]
Post subject:  Re: file open 't' flag

Hi,

Could you explain a bit this patch ? There a lot of things in there that makes it harder to understand (cleanups, atexit checks, autoconfig changes, ...). Needs separate commits !

Then, it seems a new feature is available: "package association", where I'm not sure to understand the goal and the real difference with "package registration". And there's the "first" things. May sound a bit confusing to the user, so far. At least, it is to me :)

Help ! :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/