Giganoto@Posted: Wed Oct 11, 2006 5:24 pm Post subject: declManager->FindSkin:
Does anybody know how I can check that it actually found the skin?
I thought it would return null when it didn't find the skin specified, but it doesn't Even if the skin doesn't exist, it still returns an object.
So how can I use this object to check if the skin was found or not? Or even is there another way to do this?
Thanks |
Giganoto@Posted: Wed Oct 11, 2006 5:25 pm Post subject: : Sorry, wrong section, should have posted in Mod Coding... Please move this topic.
Thanks |
zl1corvette@Posted: Thu Oct 12, 2006 10:59 pm Post subject: : declmanager.h wrote: |
// If makeDefault is true, a default decl of appropriate type will be created
// if an explicit one isn't found. If makeDefault is false, NULL will be returned
// if the decl wasn't explcitly defined.
|
so Code: | FindSkin("myskin",false) |
|
Giganoto@Posted: Wed Oct 11, 2006 5:24 pm Post subject: declManager->FindSkin: Does anybody know how I can check that it actually found the skin?
I thought it would return null when it didn't find the skin specified, but it doesn't Even if the skin doesn't exist, it still returns an object.
So how can I use this object to check if the skin was found or not? Or even is there another way to do this?
Thanks |
Giganoto@Posted: Wed Oct 11, 2006 5:25 pm Post subject: : Sorry, wrong section, should have posted in Mod Coding... Please move this topic.
Thanks |
zl1corvette@Posted: Thu Oct 12, 2006 10:59 pm Post subject: : declmanager.h wrote: |
// If makeDefault is true, a default decl of appropriate type will be created
// if an explicit one isn't found. If makeDefault is false, NULL will be returned
// if the decl wasn't explcitly defined.
|
so Code: | FindSkin("myskin",false) |
|