Update Shell.

This commit is contained in:
Bruce
2025-11-20 09:17:32 +08:00
parent ce5d3af63b
commit 1674f2c35b
87 changed files with 85481 additions and 52 deletions

10
appinstaller/raii.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
#include <functional>
typedef struct raii
{
std::function <void ()> endtask = nullptr;
raii (std::function <void ()> pFunc = nullptr): endtask (pFunc) {}
~raii () { if (endtask) endtask (); }
raii (const raii &) = delete;
raii (raii &&) = delete;
} destruct;