Header optimizations (#1684)

Shouldn't break anything. I hope.
This commit is contained in:
Ivan 2016-04-27 01:27:24 +03:00
parent da7472fe81
commit aafcf44581
89 changed files with 2370 additions and 2348 deletions

View file

@ -17,6 +17,8 @@
#include "Loader/PSF.h"
#include "Loader/ELF.h"
#include "Utilities/StrUtil.h"
#include "../Crypto/unself.h"
cfg::bool_entry g_cfg_autostart(cfg::root.misc, "Always start after boot");
@ -31,6 +33,8 @@ extern atomic_t<u32> g_thread_count;
extern u64 get_system_time();
fs::file g_tty;
namespace rpcs3
{
event<void>& on_run() { static event<void> on_run; return on_run; }
@ -48,6 +52,11 @@ Emulator::Emulator()
void Emulator::Init()
{
if (!g_tty)
{
g_tty.open(fs::get_config_dir() + "TTY.log", fs::rewrite + fs::append);
}
idm::init();
fxm::init();
@ -424,7 +433,7 @@ DECLARE(fxm::g_map);
DECLARE(fxm::g_mutex);
#ifndef _MSC_VER
constexpr std::pair<elf_error, const char*> bijective<elf_error, const char*>::map[];
constexpr std::pair<_log::level, const char*> bijective<_log::level, const char*>::map[];
constexpr std::pair<rsx::shader_language, const char*> bijective<rsx::shader_language, const char*>::map[];
constexpr DECLARE(bijective<elf_error, const char*>::map);
constexpr DECLARE(bijective<_log::level, const char*>::map);
constexpr DECLARE(bijective<rsx::shader_language, const char*>::map);
#endif