Android: Do not use std::make_unique

This commit is contained in:
zilmar 2022-07-18 20:31:45 +09:30
parent acd5f8ecd5
commit 763cba7b8a
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ add_library(Project64-core STATIC
N64System/MemoryHandler/CartridgeDomain2Address1Handler.cpp
N64System/MemoryHandler/CartridgeDomain2Address2Handler.cpp
N64System/MemoryHandler/DisplayControlRegHandler.cpp
N64System/MemoryHandler/ISViewerHandler.cpp
N64System/MemoryHandler/MIPSInterfaceHandler.cpp
N64System/MemoryHandler/PeripheralInterfaceHandler.cpp
N64System/MemoryHandler/PifRamHandler.cpp

View File

@ -2,6 +2,7 @@
#include "ISViewerHandler.h"
#include <Project64-core\N64System\N64System.h>
#include <Common/path.h>
#include <Common/File.h>
ISViewerHandler::ISViewerHandler(CN64System & System) :
m_hLogFile(nullptr),
@ -39,7 +40,7 @@ bool ISViewerHandler::Write32(uint32_t Address, uint32_t Value, uint32_t Mask)
if (m_hLogFile == nullptr)
{
CPath LogFile(g_Settings->LoadStringVal(Directory_Log).c_str(), "ISViewer.log");
m_hLogFile = std::make_unique<CFile>(LogFile, CFileBase::modeCreate | CFileBase::modeWrite);
m_hLogFile.reset(new CFile(LogFile, CFileBase::modeCreate | CFileBase::modeWrite));
}
if (m_hLogFile != nullptr && NewLine != m_Buffer)
{