Files
VRCT/src-ui/logics/common/useUpdateSoftware.js
2025-06-11 20:22:38 +09:00

17 lines
448 B
JavaScript

import { useStdoutToPython } from "@useStdoutToPython";
export const useUpdateSoftware = () => {
const { asyncStdoutToPython } = useStdoutToPython();
const updateSoftware = () => {
asyncStdoutToPython("/run/update_software");
};
const updateSoftware_CUDA = () => {
asyncStdoutToPython("/run/update_cuda_software");
};
return {
updateSoftware,
updateSoftware_CUDA,
};
};