[Refactor] utils and library entry

This commit is contained in:
xiaozhou233 committed 2025-10-26 00:38:06 +08:00
1 parent 5eff534dbd
commit 6f104145b4
5 files changed
+136 -103

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#ifndef DATAUTILS_H
#define DATAUTILS_H
#include <string.h>
#include "InjectParameters.h"
#include "tomlc17.h"
#include "log.h"
typedef struct _InjectionInfo {
char BootstrapAPIPath[INJECT_PATH_MAX];
char JuiceLoaderJarPath[INJECT_PATH_MAX];
char JuiceLoaderLibPath[INJECT_PATH_MAX];
char EntryJarPath[INJECT_PATH_MAX];
char EntryClass[INJECT_PATH_MAX];
char EntryMethod[INJECT_PATH_MAX];
} InjectionInfoType;
extern InjectionInfoType InjectionInfo;
void safe_copy(char *dest, const char *src, size_t dest_size);
bool ReadInjectionInfo(toml_result_t result, InjectParameters* params);
#endif // DATAUTILS_H