Organized the project files.

And also fixed some bugs.
This commit is contained in:
Bruce
2025-12-08 16:06:13 +08:00
parent ed7fe3af4b
commit d1813637c5
95 changed files with 46744 additions and 36366 deletions

10
desktopini/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;