MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / cleanupScriptFile

Function cleanupScriptFile

plugins/scripting/utils/inline-script.cpp:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57static bool setupDone = setup();
58
59static void cleanupScriptFile(const std::string &path)
60{
61 const QFileInfo fileInfo(QString::fromStdString(path));
62 if (!fileInfo.isFile()) {
63 return;
64 }
65 QFile file(fileInfo.absoluteFilePath());
66 if (!file.remove()) {
67 vblog(LOG_INFO, "failed to clean up script file %s",
68 fileInfo.absoluteFilePath().toStdString().c_str());
69 }
70}
71
72static std::optional<std::string>
73getScriptTempFilePath(obs_script_lang language)

Callers 1

operator()Method · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected