| 191 | |
| 192 | #if DISTRHO_PLUGIN_WANT_STATE |
| 193 | void Plugin::initState(const uint32_t index, State& state) |
| 194 | { |
| 195 | uint hints = 0x0; |
| 196 | String stateKey, defaultStateValue; |
| 197 | |
| 198 | #if defined(_MSC_VER) |
| 199 | #pragma warning(push) |
| 200 | #pragma warning(disable:4996) |
| 201 | #elif defined(__clang__) |
| 202 | #pragma clang diagnostic push |
| 203 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 204 | #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) |
| 205 | #pragma GCC diagnostic push |
| 206 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
| 207 | #endif |
| 208 | initState(index, stateKey, defaultStateValue); |
| 209 | if (isStateFile(index)) |
| 210 | hints = kStateIsFilenamePath; |
| 211 | #if defined(_MSC_VER) |
| 212 | #pragma warning(pop) |
| 213 | #elif defined(__clang__) |
| 214 | #pragma clang diagnostic pop |
| 215 | #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) |
| 216 | #pragma GCC diagnostic pop |
| 217 | #endif |
| 218 | |
| 219 | state.hints = hints; |
| 220 | state.key = stateKey; |
| 221 | state.label = stateKey; |
| 222 | state.defaultValue = defaultStateValue; |
| 223 | } |
| 224 | #endif |
| 225 | |
| 226 | /* ------------------------------------------------------------------------------------------------------------ |
no test coverage detected