| 111 | } |
| 112 | |
| 113 | bool TMXCache::unload(String filename) { |
| 114 | std::string fullPath = SharedContent.getFullPath(filename); |
| 115 | auto it = _maps.find(fullPath); |
| 116 | if (it != _maps.end()) { |
| 117 | _maps.erase(it); |
| 118 | return true; |
| 119 | } |
| 120 | return false; |
| 121 | } |
| 122 | |
| 123 | bool TMXCache::unload() { |
| 124 | if (_maps.empty()) { |