mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 20:15:56 +00:00
cfg_set stores a value in memory and bumps cfg_version; consumers that keep a parsed value compare the version and parse again when it changed. cfg_save rewrites only the changed lines of totk.ini, keeps comments, and adds a missing key under its section (after its commented example line when there is one). The environment still wins over both. Live consumers: volume (new TOTK_VOLUME host gain in the mixer), frame limit (TOTK_FPS60 switches the fps60 patch set and the pacer caps at 30 or 60), rumble strength, curve and triggers, gyro on or off, mouse sensitivity. TOTK_MOTION=0 and rumble strength 0 now keep their hid handles and read at rest or stay silent, so they can be turned back on. --probe-cfg covers cfg_set and cfg_save. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
# totk.ini: settings for totk.exe. Copy this file to totk.ini next to totk.exe and remove the '#' of a line to change it.
|
|
# Each line shows the default. A TOTK_* environment variable of the same name (TOTK_FPS60 for fps60) overrides the
|
|
# file. Keys are case-insensitive; '#' and ';' start a comment; [sections] only group lines.
|
|
|
|
[frame rate]
|
|
# 60 fps patch (0 = the game's own 30 fps).
|
|
# fps60 = 1
|
|
# Real-time frame step: game speed follows the clock instead of the frame count.
|
|
# realtime = 1
|
|
# Cloth simulation on the real-time clock. Needs realtime = 1.
|
|
# cloth_realtime = 1
|
|
# Fix for physics that bounce at high frame rates.
|
|
# highfps_fix = 1
|
|
|
|
[display]
|
|
# Presentation mode: mailbox (default when the driver offers it, vsync otherwise), fifo (vsync) or immediate.
|
|
# vk_present = mailbox
|
|
# Which GPU to use: its index in the log, or part of its name. Default: the first discrete GPU with Vulkan 1.3.
|
|
# gpu_index = 0
|
|
# gpu_name = NVIDIA
|
|
|
|
[language]
|
|
# Language: a Windows locale such as de-DE, or a Switch code (en-US, ja, zh-Hant, ...). Default: the Windows locale.
|
|
# locale = en-US
|
|
# lang = en-US
|
|
# System mode reported to the game: docked or handheld.
|
|
# operation_mode = docked
|
|
|
|
[audio]
|
|
# none mixes without opening an audio device.
|
|
# audio = default
|
|
# Audio the output queues before it starts, in ms (0 to 500).
|
|
# audio_prefill_ms = 20
|
|
# Volume in percent (0 to 100), on top of the game's own. Changes while the game runs take effect at once.
|
|
# volume = 100
|
|
|
|
[input]
|
|
# Gamepad motion controls (0 = off) and vibration (0 = off).
|
|
# motion = 1
|
|
# rumble = 1
|
|
# Rumble strength in percent (0 to 300; 0 = off) and the exponent on the amplitude (0.2 to 1.5; lower = weak pulses
|
|
# stronger, 1 = linear). rumble_triggers = 1 also drives the impulse triggers of an Xbox pad.
|
|
# rumble_strength = 130
|
|
# rumble_curve = 0.6
|
|
# rumble_triggers = 0
|
|
|
|
[files]
|
|
# Folder with RomFS mod files that replace or add game files. Default: none.
|
|
# romfs_mods =
|