From d0c639eb7c0438869255eec14eec27b0ba33b54c Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Mon, 24 Aug 2015 14:48:01 +0200 Subject: [PATCH] cfg/cfg: Also call savecfgf() on cfgSaveInt --- core/cfg/cfg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/cfg/cfg.cpp b/core/cfg/cfg.cpp index 03a524c14..9e8213cad 100644 --- a/core/cfg/cfg.cpp +++ b/core/cfg/cfg.cpp @@ -141,7 +141,11 @@ string cfgLoadStr(const wchar * Section, const wchar * Key, const wchar* Defaul //These are helpers , mainly :) void cfgSaveInt(const wchar * Section, const wchar * Key, s32 Int) { - return cfgdb.set_int(string(Section), string(Key), Int); + cfgdb.set_int(string(Section), string(Key), Int); + if(save_config) + { + savecfgf(); + } } s32 cfgLoadInt(const wchar * Section, const wchar * Key,s32 Default)