PATCH_FLAGS - widberg/fmtk GitHub Wiki

There exists a string in the binary "PATCH_FLAGS_p_D_b_l" that controls some bits in a global flags variable. A lowercase letter means the option is disabled and an uppercase letter means the option is enabled. The corresponding mask for each letter is bitwise or'd together with the default flags variable value if that letter is enabled. As indicated by the string, the D letter is capitalized in the string found in the game, and therefore enabled by default. The string is a global constant and cannot be modified without patching the binary/debugging.

Default

By default, the flags variable is set to 0x6D800. Since the letters are bitwise or'd with the default value, these bits will always be set.

Letters

P

0x0006C181 - PAL on, NTSC off
implies 0x00000080 - 50 on, 60 off

D

0x00002000 - unused?, enabled by default

B

0x00001000 - unused?, on by default regardless of letter case

L

0x00000800 - related to big files, definitions, unused?

No letter

Some bits in the flags variable cannot be set with the letters but are still tested by the game.

0x00008000 - warns (red screen) on below 30 fps on and 60 off in display fps, "2 Frames" option in popup menu, on by default
0x00080000 - save game location related, creates a folder if unset, off by default