mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
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).
18 lines
293 B
C++
18 lines
293 B
C++
#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, ""};
|
|
}
|