allow only 1 instance per game folder
This commit is contained in:
parent
d329495b1c
commit
614febabf6
3 changed files with 27 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <IOUtils.hpp>
|
||||
#include <SysUtils.hpp>
|
||||
#include <Registry.hpp>
|
||||
#include <System.Hash.hpp>
|
||||
#include "ConfigFormUnit.h"
|
||||
//---------------------------------------------------------------------------
|
||||
#pragma package(smart_init)
|
||||
|
@ -28,6 +29,15 @@ __fastcall TConfigForm::TConfigForm(TComponent* Owner)
|
|||
{
|
||||
}
|
||||
|
||||
void __fastcall TConfigForm::CreateParams(TCreateParams & Params)
|
||||
{
|
||||
TForm::CreateParams(Params);
|
||||
|
||||
StrCopy(
|
||||
Params.WinClassName,
|
||||
THashSHA1::GetHashString(Application->ExeName).w_str());
|
||||
}
|
||||
|
||||
void __fastcall TConfigForm::LanguageImgClick(TObject *Sender)
|
||||
{
|
||||
auto *ini = new TIniFile(".\\ddraw.ini");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue