comparison engine/core/util/base/resourceclass.cpp @ 205:54bfd1015b35

* PyChan event handling rework (part I) ** Unified listeners ** ...hopefully more robust attach/detach code. * Added compat, layout and also the new autopsition feature. * Documentation * Minor style fixes in core.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 14 Mar 2009 12:13:29 +0000
parents 90005975cdbb
children
comparison
equal deleted inserted replaced
204:5816ab527da8 205:54bfd1015b35
54 return getResourceLocation().getFilename(); 54 return getResourceLocation().getFilename();
55 } 55 }
56 56
57 void ResourceClass::setResourceLocation(const ResourceLocation& location) { 57 void ResourceClass::setResourceLocation(const ResourceLocation& location) {
58 delete m_location; 58 delete m_location;
59 m_location = NULL;
60 m_location = location.clone(); 59 m_location = location.clone();
61 } 60 }
62 61
63 void ResourceClass::setResourceFile(const std::string& filename) { 62 void ResourceClass::setResourceFile(const std::string& filename) {
64 setResourceLocation(ResourceLocation(filename)); 63 setResourceLocation(ResourceLocation(filename));