From 133bb406ee424b852161cfb985e59f5fd1d02ae8 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Sun, 31 Mar 2024 23:34:55 -0400 Subject: [PATCH] 'functions' adapt to ini interface change . --- MissionEditor/functions.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MissionEditor/functions.cpp b/MissionEditor/functions.cpp index f422de8..370e46b 100644 --- a/MissionEditor/functions.cpp +++ b/MissionEditor/functions.cpp @@ -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 (