mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Disable exception handling.
Use -fno-exceptions in cmake. On MSVC, enable _HAS_EXCEPTION=0. Cleanup throw/catch from the source. Create yaml.cpp enclave because it needs exception to work. Disable thread_local optimizations in logs.cpp (TODO). Implement cpu_counter for cpu_threads (moved globals).
This commit is contained in:
parent
47bbfdd2aa
commit
04dedb17eb
39 changed files with 421 additions and 437 deletions
17
rpcs3/util/yaml.cpp
Normal file
17
rpcs3/util/yaml.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "util/yaml.hpp"
|
||||
|
||||
std::pair<YAML::Node, std::string> yaml_load(const std::string& from)
|
||||
{
|
||||
YAML::Node result;
|
||||
|
||||
try
|
||||
{
|
||||
result = YAML::Load(from);
|
||||
}
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
return{YAML::Node(), std::string("YAML exception:\n") + e.what()};
|
||||
}
|
||||
|
||||
return{result, ""};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue