yuanyuanxiang
8b92f32c47
fix(config): stop reads from creating empty registry subkeys
...
iniFile/binFile::GetCachedKey used RegCreateKeyExA for every access, so a plain
GetStr/GetInt on a missing section materialised an empty subkey. CScreenManager's
constructor calls LoadQualityProfiles() unconditionally, which reads profile0..
profile5 x4 keys, so every client start left six zero-valued subkeys behind:
126 of them on the dev box, all with zero values. The server's HKCU\SoftwareYAMA\quality key is the same artefact.
Split the helper by intent: writes go through RegCreateKeyExA, reads through
RegOpenKeyExA. Both still ask for KEY_READ|KEY_WRITE, because the handle cache is
shared and a read-only cached handle would make a later SetStr on the same
section fail.
Also fixes a second bug in SaveQualityProfiles: when a level matched the default
it simply continued, so a level the operator reset to default kept the old
custom values in the registry and the reset never took effect. Add
SectionExists() (open-only, never creates) and write the defaults back when the
section already exists.
2026-11-02 14:12:21 +01:00
..
2026-04-19 22:55:21 +02:00
2026-10-25 14:05:25 +01:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-10-05 10:41:04 +02:00
2026-08-15 11:09:14 +02:00
2026-08-15 11:09:14 +02:00
2026-08-21 19:50:11 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-06 13:02:29 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-13 17:05:37 +02:00
2026-04-19 22:55:21 +02:00
2026-05-30 00:12:38 +02:00
2026-05-30 00:12:38 +02:00
2026-10-30 11:04:44 +01:00
2026-05-30 00:12:38 +02:00
2026-10-23 11:19:21 +02:00
2026-10-25 14:57:47 +01:00
2026-10-04 19:55:29 +02:00
2026-04-19 22:55:21 +02:00
2026-10-30 17:22:36 +01:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-04-19 22:55:21 +02:00
2026-11-02 14:01:39 +01:00
2026-11-02 14:01:39 +01:00
2026-07-13 19:02:25 +02:00
2026-07-13 19:02:25 +02:00
2026-04-19 22:55:21 +02:00
2026-10-05 10:52:58 +02:00
2026-10-05 10:52:58 +02:00
2026-10-20 21:15:45 +02:00
2026-10-04 18:23:06 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-05-09 23:13:24 +02:00
2026-11-01 20:40:02 +01:00
2026-10-05 10:52:58 +02:00
2026-10-05 10:52:58 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-05-30 00:12:38 +02:00
2026-05-30 00:12:38 +02:00
2026-04-19 22:55:21 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-04-19 22:55:21 +02:00
2026-10-23 11:19:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-24 22:31:14 +02:00
2026-04-19 22:55:21 +02:00
2026-11-02 14:01:39 +01:00
2026-10-30 22:36:01 +01:00
2026-10-25 02:22:17 +02:00
2026-06-05 00:05:13 +02:00
2026-05-06 19:29:02 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-10-20 21:48:13 +02:00
2026-10-20 21:48:13 +02:00
2026-08-21 19:50:11 +02:00
2026-10-30 22:36:01 +01:00
2026-10-30 22:36:01 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-11 20:22:07 +02:00
2026-10-20 13:12:16 +02:00
2026-10-20 13:12:16 +02:00
2026-10-25 17:59:17 +01:00
2026-06-05 00:05:13 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-04-19 22:55:21 +02:00
2026-10-04 19:55:29 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-30 21:18:57 +01:00
2026-10-30 21:57:39 +01:00
2026-11-02 14:12:21 +01:00
2026-06-15 19:15:31 +02:00
2026-05-07 18:17:28 +02:00
2026-05-07 18:17:28 +02:00
2026-10-30 21:18:57 +01:00
2026-06-16 21:03:45 +02:00
2026-10-31 18:24:54 +01:00
2026-04-19 22:55:21 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-29 22:49:30 +02:00
2026-06-29 22:49:30 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-08-21 19:50:11 +02:00
2026-06-05 00:05:13 +02:00
2026-05-08 12:39:59 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-10-23 12:22:44 +02:00
2026-10-23 12:22:44 +02:00
2026-06-05 00:05:13 +02:00
2026-10-30 23:39:05 +01:00
2026-06-29 22:49:30 +02:00
2026-04-19 22:55:21 +02:00
2026-10-31 18:24:54 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-04-19 22:55:21 +02:00
2026-05-30 00:12:38 +02:00
2026-10-13 17:05:37 +02:00
2026-10-13 17:05:37 +02:00
2026-10-30 19:15:14 +01:00
2026-10-30 11:04:44 +01:00
2026-10-30 11:04:44 +01:00
2026-10-04 21:03:03 +02:00