mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
split rpcs3 and hle libraries
merge rpcs3 utilities
This commit is contained in:
parent
b33e2662b6
commit
62ad27d1e2
1233 changed files with 7004 additions and 3819 deletions
18
rpcs3/Emu/system_config.cpp
Normal file
18
rpcs3/Emu/system_config.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#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(static_cast<u32>(std::time(nullptr)));
|
||||
return "RPCS3-" + std::to_string(100 + std::rand() % 899);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue