mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
19 lines
409 B
C++
19 lines
409 B
C++
#include "stdafx.h"
|
|
#include "system_config.h"
|
|
|
|
#include "util/sysinfo.hpp"
|
|
|
|
cfg_root g_cfg{};
|
|
cfg_root g_backup_cfg{};
|
|
|
|
bool cfg_root::node_core::enable_tsx_by_default()
|
|
{
|
|
return utils::has_rtm() && utils::has_mpx() && !utils::has_tsx_force_abort();
|
|
}
|
|
|
|
std::string cfg_root::node_sys::get_random_system_name()
|
|
{
|
|
std::srand(std::time(nullptr));
|
|
return "RPCS3-" + std::to_string(100 + std::rand() % 899);
|
|
}
|