Revision [209]
This is an old revision of imageName made by JohnMcIntosh on 2008-10-17 01:54:22.
This is a global variable, likely for Hydra it should be hung off the VM interpreter local storage.
From: Interpreter writeImageFileIO, and snapshot and writeImageFile (set mac file type)
Why:
Storage for the image file name that is used by writeImageFileIO, has to be in file system representation
Responsibility:
This is a bit messy since on the iPhone and OSX the imagePath is stored both as a URI and as a character string.
MacIntosh
os-9/OSXCarbon
Cocoa:
TBD
char *getImageName(void) populates imageName via
CFStringGetCString (imageNameString, target, IMAGE_NAME_SIZE, encoding); via
getImageNameWithEncoding(imageName,gCurrentVMEncoding);
where imageName is
HFS imposes Unicode2.1 decomposed UTF-8 encoding on all path elements
iPhone
uses imageNamePutLength to populate imageName as a result of findImageViaBundleOrPreferences
Unix
Windows
BUGS
how big is unclear and platform dependent.