std::string ResourceManager::saveJarInTempFile() { if (useEmbeddedJar() == false) return ""; std::string tempfilename = FileUtils::createTempFileName(".jar"); DEBUG("Created temporary filename to hold the jar (" + tempfilename + ")"); saveTemp(tempfilename, m_jarHandler, m_jarSize); return tempfilename; }
void calibrateTemp(AnalogInputs::Name name, uint8_t point) { TempMenu v(name); int8_t index; do { index = v.runSimple(true); if(index < 0) break; if(index == 0) { AnalogInputs::on_ = false; if(v.runEdit(index)) saveTemp(name, point); AnalogInputs::on_ = true; } } while(true); }
std::string ResourceManager::saveJnismoothInTempFile() { if (m_jnismoothHandler == 0) { DEBUG("NO JNI SMOOTH ID !!"); return ""; } std::string tempfilename = FileUtils::createTempFileName(".jar"); DEBUG("Saving jnismoothjar in " + tempfilename); DEBUG("Created temporary filename to hold the jar (" + tempfilename + ")"); saveTemp(tempfilename, m_jnismoothHandler, m_jnismoothSize); return tempfilename; }