mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-14 00:58:51 +02:00
unittests: set user directory so SYSCONF does not get created at the drive root
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#include "Core/Core.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
#include "UICommon/UICommon.h"
|
||||
|
||||
// Numbers are chosen randomly to make sure the correct one is given.
|
||||
static constexpr std::array<u64, 5> CB_IDS{{42, 144, 93, 1026, UINT64_C(0xFFFF7FFFF7FFFF)}};
|
||||
@ -37,6 +38,7 @@ public:
|
||||
ScopeInit()
|
||||
{
|
||||
Core::DeclareAsCPUThread();
|
||||
UICommon::SetUserDirectory("");
|
||||
Config::Init();
|
||||
SConfig::Init();
|
||||
PowerPC::Init(PowerPC::CORE_INTERPRETER);
|
||||
|
Reference in New Issue
Block a user