From 96ba916b82f408144acb9645868c794f2edba92d Mon Sep 17 00:00:00 2001 From: Nikita Zimin Date: Sun, 7 Apr 2024 14:41:42 +0300 Subject: [PATCH] Removed tchar include --- .gitignore | 1 + BKImage.cpp | 4 ++-- pch.h | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 6a04ef8..068b870 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /Debug /Release /x64 +/.vs /*.ncb /*.suo *.user diff --git a/BKImage.cpp b/BKImage.cpp index 06d0595..63302a9 100644 --- a/BKImage.cpp +++ b/BKImage.cpp @@ -857,7 +857,7 @@ bool CBKImage::ExtractFile(BKDirDataItem *fr) } } - if ((AFS.file = _tfopen((m_strStorePath / AFS.strName).c_str(), _T("w+b"))) != nullptr) + if ((AFS.file = _wfopen((m_strStorePath / AFS.strName).c_str(), L"w+b")) != nullptr) { const int nLen = fr->nSize; auto Buffer = std::vector(m_pFloppyImage->EvenSizeByBlock(nLen)); @@ -1161,7 +1161,7 @@ ADDOP_RESULT CBKImage::AddFile(const fs::path& findFile) memset(pBuffer, 0, nBufferSize); AnalyseFileStruct AFS; - if ((AFS.file = _tfopen(findFile.c_str(), _T("rb"))) != nullptr) + if ((AFS.file = _wfopen(findFile.c_str(), L"rb")) != nullptr) { AFS.strName = findFile.stem(); AFS.strExt = findFile.extension(); diff --git a/pch.h b/pch.h index 39a2dd8..28ffeda 100644 --- a/pch.h +++ b/pch.h @@ -25,8 +25,6 @@ namespace fs = std::filesystem; -#include - #ifdef _DEBUG #include #define ASSERT assert