Fix mini variant param message for non-english locales
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
c883a9db68
commit
daf8d467f7
2 changed files with 10 additions and 2 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include "DistrhoPluginUtils.hpp"
|
||||
#include "PluginContext.hpp"
|
||||
#include "extra/Base64.hpp"
|
||||
#include "extra/ScopedSafeLocale.hpp"
|
||||
|
||||
#ifdef DISTRHO_OS_WASM
|
||||
# include <emscripten/emscripten.h>
|
||||
|
|
@ -841,7 +842,10 @@ protected:
|
|||
long long moduleId = 0;
|
||||
int paramId = 0;
|
||||
float paramValue = 0.f;
|
||||
std::sscanf(value, "%lld:%d:%f", &moduleId, ¶mId, ¶mValue);
|
||||
{
|
||||
const ScopedSafeLocale cssl;
|
||||
std::sscanf(value, "%lld:%d:%f", &moduleId, ¶mId, ¶mValue);
|
||||
}
|
||||
|
||||
rack::engine::Module* const module = context->engine->getModule(moduleId);
|
||||
DISTRHO_SAFE_ASSERT_RETURN(module != nullptr,);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue