Open main menu

Difference between revisions of "Coding Conventions"

186 bytes added ,  22:24, 23 February 2010
(end -> endian)
Line 32: Line 32:


== File access ==
== File access ==
TODO: Talk about file reading/writing, SaveFile vs. File, FSNodes vs. Paths, etc. -- maybe wait until the SoC, though? *g*
In a nutshell, you must not use fopen(), fread(), fwrite(), etc., nor open(), close(), etc. in your code (unless you are developing a backend, that is). Instead you must use the APIs for reading and writing files provided by ScummVM. Please consult the [[HOWTO-Open Files|HOWTO Open Files]] page for details.
1,079

edits