mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-10-13 01:28:23 +03:00
hook/other classic piu: Add gfx scaling feature
Support every game except for mk3 ports and pro series. Pro series can do scaling etc by game configuration and mk3 has a different gfx backend setup
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "util/options.h"
|
||||
|
||||
#define FSTHOOK_OPTIONS_STR_GAME_SETTINGS "game.settings"
|
||||
#define FSTHOOK_OPTIONS_STR_PATCH_GFX_SCALING_MODE "gfx.scaling_mode"
|
||||
#define FSTHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE "patch.hook_mon.file"
|
||||
#define FSTHOOK_OPTIONS_STR_PATCH_HOOK_MON_FS "patch.hook_mon.fs"
|
||||
#define FSTHOOK_OPTIONS_STR_PATCH_HOOK_MON_IO "patch.hook_mon.io"
|
||||
@@ -32,6 +33,13 @@ const struct util_options_def fsthook_options_def[] = {
|
||||
.type = UTIL_OPTIONS_TYPE_STR,
|
||||
.default_value.str = "./save",
|
||||
},
|
||||
{
|
||||
.name = FSTHOOK_OPTIONS_STR_PATCH_GFX_SCALING_MODE,
|
||||
.description = "Set a scaling mode for the rendered output. Available modes: 0 = disabled, 1 = SD 480 to pillarbox HD 720, 2 = SD 480 to pillarbox HD 1080, 3 = SD 480 to SD 960, 4 = HD 720 to HD 1080",
|
||||
.param = 'z',
|
||||
.type = UTIL_OPTIONS_TYPE_INT,
|
||||
.default_value.i = 0,
|
||||
},
|
||||
{
|
||||
.name = FSTHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE,
|
||||
.description = "Enable file call monitoring",
|
||||
@@ -170,6 +178,8 @@ bool fsthook_options_init(
|
||||
|
||||
options->game.settings =
|
||||
util_options_get_str(options_opt, FSTHOOK_OPTIONS_STR_GAME_SETTINGS);
|
||||
options->patch.gfx.scaling_mode = util_options_get_int(
|
||||
options_opt, FSTHOOK_OPTIONS_STR_PATCH_GFX_SCALING_MODE);
|
||||
options->patch.hook_mon.file = util_options_get_bool(
|
||||
options_opt, FSTHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE);
|
||||
options->patch.hook_mon.fs =
|
||||
|
||||
Reference in New Issue
Block a user