mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
DSPEmulator: Make CreateDSPEmulator return a unique_ptr
This commit is contained in:
@ -2,15 +2,16 @@
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "Core/DSPEmulator.h"
|
||||
#include <memory>
|
||||
|
||||
#include "Core/DSPEmulator.h"
|
||||
#include "Core/HW/DSPHLE/DSPHLE.h"
|
||||
#include "Core/HW/DSPLLE/DSPLLE.h"
|
||||
|
||||
DSPEmulator *CreateDSPEmulator(bool HLE)
|
||||
std::unique_ptr<DSPEmulator> CreateDSPEmulator(bool hle)
|
||||
{
|
||||
if (HLE)
|
||||
return new DSPHLE();
|
||||
else
|
||||
return new DSPLLE();
|
||||
if (hle)
|
||||
return std::make_unique<DSPHLE>();
|
||||
|
||||
return std::make_unique<DSPLLE>();
|
||||
}
|
||||
|
Reference in New Issue
Block a user