 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Mon Jun 20, 2005 9:07 am Post subject: |
|
|
| 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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Mon Jun 20, 2005 2:57 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|