mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-10-09 23:58:19 +03:00
Support redacted options by adding a "is_secret_data" flag for options
Use this to flag options as "secrets" allowing the debug log output to not print them to the console/logs.
This commit is contained in:
@@ -32,6 +32,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Path to game data (game) folder",
|
||||
.param = 'd',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = "./game",
|
||||
},
|
||||
{
|
||||
@@ -39,6 +40,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Path to game settings (data) folder",
|
||||
.param = 's',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = "./save",
|
||||
},
|
||||
{
|
||||
@@ -46,6 +48,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Enable file call monitoring",
|
||||
.param = 'f',
|
||||
.type = UTIL_OPTIONS_TYPE_BOOL,
|
||||
.is_secret_data = false,
|
||||
.default_value.b = false,
|
||||
},
|
||||
{
|
||||
@@ -53,6 +56,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Enable file system related call monitoring",
|
||||
.param = 'g',
|
||||
.type = UTIL_OPTIONS_TYPE_BOOL,
|
||||
.is_secret_data = false,
|
||||
.default_value.b = false,
|
||||
},
|
||||
{
|
||||
@@ -60,6 +64,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Enable IO syscall monitoring",
|
||||
.param = 'i',
|
||||
.type = UTIL_OPTIONS_TYPE_BOOL,
|
||||
.is_secret_data = false,
|
||||
.default_value.b = false,
|
||||
},
|
||||
{
|
||||
@@ -67,6 +72,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Enable any file/IO open call monitoring",
|
||||
.param = 'j',
|
||||
.type = UTIL_OPTIONS_TYPE_BOOL,
|
||||
.is_secret_data = false,
|
||||
.default_value.b = false,
|
||||
},
|
||||
{
|
||||
@@ -74,6 +80,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Enable libusb call monitoring",
|
||||
.param = 'u',
|
||||
.type = UTIL_OPTIONS_TYPE_BOOL,
|
||||
.is_secret_data = false,
|
||||
.default_value.b = false,
|
||||
},
|
||||
{
|
||||
@@ -82,6 +89,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
"Path to library implementing the piubtn api for piubtn emulation",
|
||||
.param = 'b',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = NULL,
|
||||
},
|
||||
{
|
||||
@@ -90,6 +98,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
"Path to library implementing the piuio api for piuio emulation",
|
||||
.param = 'p',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = NULL,
|
||||
},
|
||||
{
|
||||
@@ -97,6 +106,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Enable game exit on Test + Service",
|
||||
.param = 'e',
|
||||
.type = UTIL_OPTIONS_TYPE_BOOL,
|
||||
.is_secret_data = false,
|
||||
.default_value.b = false,
|
||||
},
|
||||
{
|
||||
@@ -106,6 +116,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
"drive is plugged in",
|
||||
.param = 'a',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = NULL,
|
||||
},
|
||||
{
|
||||
@@ -115,6 +126,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
"drive is plugged in",
|
||||
.param = 'k',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = NULL,
|
||||
},
|
||||
{
|
||||
@@ -124,6 +136,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
"sdX,sdY e.g. sde,sdf",
|
||||
.param = 't',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = NULL,
|
||||
},
|
||||
{
|
||||
@@ -132,6 +145,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
"api to capture X11 keyboard inputs",
|
||||
.param = 'q',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = NULL,
|
||||
},
|
||||
{
|
||||
@@ -140,6 +154,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
"x11-input-handler api to capture X11 keyboard inputs",
|
||||
.param = 'r',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = NULL,
|
||||
},
|
||||
{
|
||||
@@ -147,6 +162,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Print the log output to the specified file",
|
||||
.param = 'o',
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.is_secret_data = false,
|
||||
.default_value.str = "pumptools.log",
|
||||
},
|
||||
{
|
||||
@@ -154,6 +170,7 @@ static const struct util_options_def prohook_options_def[] = {
|
||||
.description = "Set the log level (0-4)",
|
||||
.param = 'l',
|
||||
.type = UTIL_OPTIONS_TYPE_INT,
|
||||
.is_secret_data = false,
|
||||
.default_value.i = LOG_LEVEL_DEBUG,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user