A few questions regarding how to use some of the functions declared in the fxcg-10/20's version of "stdio.h":
Bfile_OpenFile_OS seems rather awkward for many reasons: first off, why does it need a pointer to a string of unsigned shorts? Is this for 2 byte character sets? It compiles fine with a pointer to a string of chars, (of course it throws a warning, but no error) but do I need to manually input byte sequences to access non-ASCII characters (that was worded bad, but basically, do I need to input different characters to represent the same ones if this parameter is not meant for ASCII characters)?
Secondly, files have to start with "\\fls0" -- though PrizmWiki doesn't tell how the rest of the file extension has to be represented. Is "\\fls0\city.pcc" as valid extension?
Thirdly, for Bfile_CreateEntry_OS, what type of modes are available (apparently I should use mode (int) 1, but are there other options?) and what do they do? Why in god's name do we need to pass the parameter for size as a pointer to the int that holds the size value? How do you specify where to save it?
For those interested, here's a snippet of code dealing with it (from my contest entry, but I snipped out everything not in question with a "...":
Code:
Bfile_OpenFile_OS seems rather awkward for many reasons: first off, why does it need a pointer to a string of unsigned shorts? Is this for 2 byte character sets? It compiles fine with a pointer to a string of chars, (of course it throws a warning, but no error) but do I need to manually input byte sequences to access non-ASCII characters (that was worded bad, but basically, do I need to input different characters to represent the same ones if this parameter is not meant for ASCII characters)?
Secondly, files have to start with "\\fls0" -- though PrizmWiki doesn't tell how the rest of the file extension has to be represented. Is "\\fls0\city.pcc" as valid extension?
Thirdly, for Bfile_CreateEntry_OS, what type of modes are available (apparently I should use mode (int) 1, but are there other options?) and what do they do? Why in god's name do we need to pass the parameter for size as a pointer to the int that holds the size value? How do you specify where to save it?
For those interested, here's a snippet of code dealing with it (from my contest entry, but I snipped out everything not in question with a "...":
Code:
int SAVE_HANDLE = Bfile_OpenFile_OS("\\fls0\city.pcc", 0x03);
if(SAVE_HANDLE < 0) {
...
Bfile_CreateEntry_OS("city.pcc", 1, size_needed);
} else { ... }