feat:全局设置增加延迟注入秒数

This commit is contained in:
jiqiu2021
2025-06-27 15:29:55 +08:00
parent 0c713a26da
commit cc4fb60b7b
6 changed files with 150 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ namespace Config {
struct ModuleConfig {
bool enabled = true;
bool hideInjection = false;
int injectionDelay = 2; // Default 2 seconds
std::unordered_map<std::string, AppConfig> perAppConfig;
};
@@ -45,6 +46,9 @@ namespace Config {
// Get injection method for specific app
InjectionMethod getAppInjectionMethod(const std::string& packageName);
// Get injection delay in seconds
int getInjectionDelay();
}
#endif // CONFIG_H