Feature request for ps2link protocol

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

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
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

 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: Select all

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: Select all

 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.
Post Reply