Android: Do not use std::make_unique
This commit is contained in:
parent
acd5f8ecd5
commit
763cba7b8a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue