MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:1428–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426 const auto dir = Path::RemoveFile(src);
1427 des_path = Path::Append(dir, des);
1428 }
1429 return static_cast<bool>(MoveFileW(src.c_str(), (des_path.empty() ? des : des_path).c_str()));
1430 }
1431};
1432struct QiFunc_file_remove : public QiFunc
1433{
1434 QiFunc_file_remove() : QiFunc(1) {}
1435 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
1436 {
1437 return static_cast<bool>(DeleteFileW(String::toWString(args[0].toString()).c_str()));
1438 }
1439};
1440struct QiFunc_file_open : public QiFunc

Callers

nothing calls this directly

Calls 3

FindMacroFunction · 0.85
toStringMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected