-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathconfig.h
More file actions
100 lines (83 loc) · 2.27 KB
/
config.h
File metadata and controls
100 lines (83 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifndef CONFIG_H
#define CONFIG_H
#include "../util/util.h"
/**
* @brief Doorstop configuration
*/
typedef struct {
/**
* @brief Whether Doorstop is enabled (enables hooking methods and executing
* target assembly).
*/
bool_t enabled;
/**
* @brief Whether to redirect Unity output log.
*
* If enabled, Doorstop will append `-logFile` command line argument to
* process command line arguments. This will force Unity to write output
* logs to the game folder.
*/
bool_t redirect_output_log;
/**
* @brief Whether to ignore DOORSTOP_DISABLE.
*
* If enabled, Doorstop will ignore DOORSTOP_DISABLE environment variable.
* This is sometimes useful with Steam games that break env var isolation.
*/
bool_t ignore_disabled_env;
/**
* @brief Path to a managed assembly to invoke.
*/
char_t *target_assembly;
/**
* @brief Path to a unmanaged assembly to invoke.
*/
char_t *target_native_library;
/**
* @brief Path to a custom boot.config file to use. If enabled, this file
* takes precedence over the default one in the Data folder.
*/
char_t *boot_config_override;
/**
* @brief Path to use as the main DLL search path. If enabled, this folder
* takes precedence over the default Managed folder.
*/
char_t *mono_dll_search_path_override;
/**
* @brief Whether to enable the mono debugger.
*/
bool_t mono_debug_enabled;
/**
* @brief Whether to enable the debugger in suspended state.
*
* If enabled, the runtime will force the game to wait until a debugger is
* connected.
*/
bool_t mono_debug_suspend;
/**
* @brief Debug address to use for the mono debugger.
*/
char_t *mono_debug_address;
/**
* @brief Path to the CoreCLR runtime library.
*/
char_t *clr_runtime_coreclr_path;
/**
* @brief Path to the CoreCLR core libraries folder.
*/
char_t *clr_corlib_dir;
} Config;
extern Config config;
/**
* @brief Load configuration.
*/
extern void load_config();
/**
* @brief Initialize default values for configuration.
*/
extern void init_config_defaults();
/**
* @brief Clean up configuration.
*/
extern void cleanup_config();
#endif