Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
HWDetect.cpp File Reference
#include "precompiled.h"
#include "lib/build_version.h"
#include "lib/external_libraries/libsdl.h"
#include "lib/posix/posix_utsname.h"
#include "lib/timer.h"
#include "lib/sysdep/cpu.h"
#include "lib/sysdep/numa.h"
#include "lib/sysdep/os_cpu.h"
#include "lib/sysdep/smbios.h"
#include "lib/sysdep/sysdep.h"
#include "lib/utf8.h"
#include "soundmanager/SoundManager.h"
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/GameSetup/Config.h"
#include "ps/Profile.h"
#include "ps/Pyrogenesis.h"
#include "ps/scripting/JSInterface_ConfigDB.h"
#include "ps/scripting/JSInterface_Debug.h"
#include "ps/UserReport.h"
#include "ps/VideoMode.h"
#include "renderer/backend/IDevice.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/JSON.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/StructuredClone.h"
#include <boost/version.hpp>
#include <fmt/format.h>
#include <ft2build.h>
#include <freetype/freetype.h>
#include "nvtt/nvtt.h"
#include <random>
#include <sstream>
#include <string>
#include <thread>
Include dependency graph for HWDetect.cpp:

Classes

class  anonymous_namespace{HWDetect.cpp}::Reporter
 
class  anonymous_namespace{HWDetect.cpp}::LibraryReporter
 

Namespaces

namespace  anonymous_namespace{HWDetect.cpp}
 

Functions

JS::Value anonymous_namespace{HWDetect.cpp}::MakeSDLReport (const ScriptRequest &rq)
 
JS::Value anonymous_namespace{HWDetect.cpp}::MakeFreeTypeReport (const ScriptRequest &rq)
 
void anonymous_namespace{HWDetect.cpp}::ReportLibraries (const ScriptRequest &rq, JS::HandleValue settings)
 
void anonymous_namespace{HWDetect.cpp}::WriteSystemInfo (Renderer::Backend::IDevice *device, const utsname &un)
 
void SetDisableAudio (bool disabled)
 
void RunHardwareDetection (bool writeSystemInfoBeforeDetection, Renderer::Backend::IDevice *device)
 Runs hardware-detection script to adjust default config settings and/or emit warnings depending on the user's system configuration. More...
 

Function Documentation

◆ RunHardwareDetection()

void RunHardwareDetection ( bool  writeSystemInfoBeforeDetection,
Renderer::Backend::IDevice device 
)

Runs hardware-detection script to adjust default config settings and/or emit warnings depending on the user's system configuration.

This must only be called after backend device creation.

◆ SetDisableAudio()

void SetDisableAudio ( bool  disabled)