From 6b63f26465fd6f691539894bb9df206b6f79767e Mon Sep 17 00:00:00 2001 From: yuetsao Date: Sat, 17 Feb 2024 14:39:18 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/Util/mini.h.=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=8E=89=E8=B7=91=E5=BC=82=E5=B8=B8=E7=9A=84=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuetsao --- src/Util/mini.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Util/mini.h b/src/Util/mini.h index 6a67fc2..560c17e 100644 --- a/src/Util/mini.h +++ b/src/Util/mini.h @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2015 r-lyeh (https://github.com/r-lyeh) * Copyright (c) 2016-2019 xiongziliang <771730766@qq.com> * @@ -57,9 +57,9 @@ public: void parseFile(const std::string &fileName = exePath() + ".ini") { std::ifstream in(fileName, std::ios::in | std::ios::binary | std::ios::ate); - if (!in.good()) { - throw std::invalid_argument("Invalid ini file: " + fileName); - } + // if (!in.good()) { + // throw std::invalid_argument("Invalid ini file: " + fileName); + // } auto size = in.tellg(); in.seekg(0, std::ios::beg); std::string buf; -- Gitee