[Plib-devel] LoadASE problem.
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-02-23 14:56:43
|
Dave: Your ssgParser/ssgLoadASE/ssgSaveASE code is a bit brutal when it finds an error. If I try to load or save a file that does not exist, it does an 'exit(1)'!!! Eeeekkkk! That's kinda brutal when you've just spent 3 hours building a model in PPE - and when you try to save it and accidentally open a write-protected file or a non-existant directory *KABLOOIE*!!! Please have ssgLoadASE return NULL if it can't load a file for *any* reason - and have ssgSaveASE return FALSE if it can't save. This is kinda urgent! Also, the _ssgMakePath function chops off the leading path information or something...we need ssgModelPath to be applied consistantly across all loaders. What ssgLoadAC does is: * If the path starts with a slash - use it as-is. * If the path starts with anything else, prepend _ssgModelPath and a slash. I'm not sure if that's the *perfect* rule - but it's what existing applications expect. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |