| 115 | } |
| 116 | |
| 117 | CSkins::CSkinContainer::EState CSkins::CSkinContainer::DetermineInitialState() const |
| 118 | { |
| 119 | if(m_AlwaysLoaded) |
| 120 | { |
| 121 | // Load immediately if it should always be loaded |
| 122 | return EState::PENDING; |
| 123 | } |
| 124 | else if((g_Config.m_ClVanillaSkinsOnly && !m_Vanilla) || |
| 125 | (m_Type == EType::DOWNLOAD && !g_Config.m_ClDownloadSkins)) |
| 126 | { |
| 127 | // Fail immediately if it shouldn't be loaded |
| 128 | return EState::NOT_FOUND; |
| 129 | } |
| 130 | else |
| 131 | { |
| 132 | return EState::UNLOADED; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | void CSkins::CSkinContainer::SetState(EState State) |
| 137 | { |
no outgoing calls
no test coverage detected