forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Feature request for ps2link protocol
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Mon Jun 20, 2005 9:07 am    Post subject: Reply with quote

ooPo wrote:

If no filename is specified, it will attempt to read a default file. (where should this file be?). The format will be as follows, all on one line:

mc0:/SYS-CONF/GSCONFIG.DAT perhaps?
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Jun 20, 2005 2:57 pm    Post subject: Reply with quote

Code:
 int graph_config_read(char *filename);
 // Reads a config file and sets its contents as the current mode.

 int graph_config_write(char *filename);
 // Writes the current mode information into a config file.

These should appear in cvs in the near future. Due to the lack of scanf currently in ps2sdk I've changed the format of the config file 'slightly'. :)

Code:
GRAPH_MODE_NTSC:GRAPH_PSM_32:GRAPH_PSM_32:

The format is mode, psm and zpsm. Note the trailing colon - strtok isn't my specialty so adding a colon makes things a lot nicer to deal with.

I know you had your heart set on doing your own weird mode stuff, so I've supplied the following function to allow you to do just that:

Code:
 int graph_set_mode_manual(int width, int height, int mode, int interlace, int size, u64 display, int psm, int zpsm);
 // Sets the graphic mode by specifying the actual graph_mode structure values.

Currently there is no default config file name.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group