mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
use hook=3 now instead
This commit is contained in:
parent
00d2f69a66
commit
6a4941a1be
@ -683,7 +683,7 @@ void __fastcall TConfigForm::FormCreate(TObject *Sender)
|
|||||||
NoactivateappChk->State = GetBool(ini, "noactivateapp", false) ? tssOn : tssOff;
|
NoactivateappChk->State = GetBool(ini, "noactivateapp", false) ? tssOn : tssOff;
|
||||||
|
|
||||||
Hook = ini->ReadInteger("ddraw", "hook", 4);
|
Hook = ini->ReadInteger("ddraw", "hook", 4);
|
||||||
HookChk->State = Hook == 2 ? tssOn : tssOff;
|
HookChk->State = Hook == 3 ? tssOn : tssOff;
|
||||||
|
|
||||||
Minfps = ini->ReadInteger("ddraw", "minfps", 0);
|
Minfps = ini->ReadInteger("ddraw", "minfps", 0);
|
||||||
MinfpsChk->State = Minfps != 0 ? tssOn : tssOff;
|
MinfpsChk->State = Minfps != 0 ? tssOn : tssOff;
|
||||||
@ -852,15 +852,12 @@ void TConfigForm::SaveSettings()
|
|||||||
"noactivateapp",
|
"noactivateapp",
|
||||||
NoactivateappChk->State == tssOn ? "true" : "false");
|
NoactivateappChk->State == tssOn ? "true" : "false");
|
||||||
|
|
||||||
int hook = Hook != 2 ? Hook : 4;
|
int hook = Hook != 3 ? Hook : 4;
|
||||||
|
|
||||||
ini->WriteInteger(
|
ini->WriteInteger(
|
||||||
"ddraw",
|
"ddraw",
|
||||||
"hook",
|
"hook",
|
||||||
HookChk->State == tssOn ? 2 : hook);
|
HookChk->State == tssOn ? 3 : hook);
|
||||||
|
|
||||||
if (HookChk->State == tssOn && Hook != 2)
|
|
||||||
ini->WriteString("ddraw", "renderer", "gdi");
|
|
||||||
|
|
||||||
int minfps = Minfps == 0 ? -1 : Minfps;
|
int minfps = Minfps == 0 ? -1 : Minfps;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user