mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-05 03:01:42 -04:00
'functions' adapt to ini interface change .
This commit is contained in:
parent
0c0cfedd03
commit
133bb406ee
1 changed files with 5 additions and 5 deletions
|
@ -331,22 +331,22 @@ void ShowOptionsDialog()
|
|||
opt.m_TSEXE=theApp.m_Options.TSExe;
|
||||
if(opt.DoModal()==IDCANCEL) return;
|
||||
theApp.m_Options.TSExe=opt.m_TSEXE;
|
||||
optini.Assign(game, "Exe", theApp.m_Options.TSExe);
|
||||
optini.Assign(app, "Language", opt.m_LanguageName);
|
||||
optini.SetString(game, "Exe", theApp.m_Options.TSExe);
|
||||
optini.SetString(app, "Language", opt.m_LanguageName);
|
||||
|
||||
BOOL bOldSearch=theApp.m_Options.bSearchLikeTS;
|
||||
if(!(opt.m_LikeTS==1)) {
|
||||
optini.Assign(app, "FileSearchLikeGame", "yes");
|
||||
optini.SetString(app, "FileSearchLikeGame", "yes");
|
||||
theApp.m_Options.bSearchLikeTS=TRUE;
|
||||
}
|
||||
else {
|
||||
theApp.m_Options.bSearchLikeTS=FALSE;
|
||||
optini.Assign(app, "FileSearchLikeGame", "no");
|
||||
optini.SetString(app, "FileSearchLikeGame", "no");
|
||||
}
|
||||
|
||||
auto bOldPreferLocalTheaterFiles = theApp.m_Options.bPreferLocalTheaterFiles;
|
||||
theApp.m_Options.bPreferLocalTheaterFiles = opt.m_PreferLocalTheaterFiles ? true : false;
|
||||
optini.Assign(app, "PreferLocalTheaterFiles", theApp.m_Options.bPreferLocalTheaterFiles ? "1" : "0");
|
||||
optini.SetString(app, "PreferLocalTheaterFiles", theApp.m_Options.bPreferLocalTheaterFiles ? "1" : "0");
|
||||
|
||||
|
||||
if (
|
||||
|
|
Loading…
Add table
Reference in a new issue