Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Mon Jun 26, 2017 10:36 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: file open 't' flag
PostPosted: Tue Oct 13, 2009 7:16 am 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
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


Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Tue Oct 13, 2009 4:06 pm 
Offline

Joined: Tue Jul 08, 2008 2:37 am
Posts: 181
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.


Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Wed Oct 14, 2009 6:14 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2590
Location: gnniiiii (Scrat)
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' ! :)


Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Wed Oct 14, 2009 7:09 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
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


Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Wed Oct 14, 2009 7:40 pm 
Offline

Joined: Tue Jul 08, 2008 2:37 am
Posts: 181
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.


Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Wed Oct 14, 2009 7:55 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2590
Location: gnniiiii (Scrat)
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.


Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Wed Oct 14, 2009 8:30 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2590
Location: gnniiiii (Scrat)
Added, rev 905.


Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Wed Oct 14, 2009 9:02 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
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 207 times
Top
 Profile  
 
 Post subject: Re: file open 't' flag
PostPosted: Wed Oct 14, 2009 9:52 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2590
Location: gnniiiii (Scrat)
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 ! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group