Go to the source code of this file.
|
| char * | ConvertNameToGenerated (char *pszPath, const char *pszExtension) |
| | Turn a path into the path of its platform-converted copy.
|
| int | LoadBitmapFileFromPath (const char *pszPath) |
| | Report whether a bitmap's compressed platform copy exists.
|
| void | AppendName (char *pszPath, const char *pszExtension) |
| | Insert an extension in front of a path's last full stop, or append it when there is none.
|
|
| const char * | dirpath |
| | Directory the platform-converted copy of a file sits in, relative to the original: "gen/".
|
◆ ConvertNameToGenerated()
| char * ConvertNameToGenerated |
( |
char * | pszPath, |
|
|
const char * | pszExtension ) |
Turn a path into the path of its platform-converted copy.
dirpath is inserted in front of the file name, after the last slash or backslash. The last full stop then becomes an underscore, and pszExtension is appended. "dir/name.bmp" with ".abm" becomes "dir/gen/name_bmp.abm". Uppercase letters after the full stop are lowered, but the lowering starts as many characters past the full stop as dirpath is long. A three-letter extension is therefore never lowered.
- Parameters
-
| pszPath | The path, rewritten in place. The buffer must take the longer result. |
| pszExtension | The extension to append. |
- Returns
- pszPath.
- Ghidra address:
- NTSC-U/C: 0x005585a8
- Ghidra address:
- PAL: 0x00599700
◆ LoadBitmapFileFromPath()
| int LoadBitmapFileFromPath |
( |
const char * | pszPath | ) |
|
Report whether a bitmap's compressed platform copy exists.
Builds the path of the ".abm" copy, appends ".gz", and tries to open it. The file is closed at once and nothing is loaded. The name is inferred.
- Parameters
-
| pszPath | The original bitmap path. |
- Returns
- Non-zero when the ".abm.gz" file opens.
- Ghidra address:
- NTSC-U/C: 0x00558538
- Ghidra address:
- PAL: 0x00599690
◆ AppendName()
| void AppendName |
( |
char * | pszPath, |
|
|
const char * | pszExtension ) |
Insert an extension in front of a path's last full stop, or append it when there is none.
"name.bmp" with ".abm" becomes "name.abm.bmp".
- Parameters
-
| pszPath | The path, rewritten in place. The buffer must take the longer result. |
| pszExtension | The extension to insert. |
- Ghidra address:
- NTSC-U/C: 0x005586b0
- Ghidra address:
- PAL: 0x00599808
◆ dirpath
Directory the platform-converted copy of a file sits in, relative to the original: "gen/".
ConvertNameToGenerated() inserts it in front of a file name. External linkage makes every use load the pointer, as the image does.
- Ghidra address:
- NTSC-U/C: 0x00725840
- Ghidra address:
- PAL: 0x007694e0