From 41250bda2a3e3383b8825a31610102826c32c486 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 15 Feb 2020 01:52:25 +0800 Subject: Added 3 methods for getting certain types of system information. Also improved format of related information reported in logs. --- smelt/glfw/smelt_internal.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'smelt/glfw/smelt_internal.hpp') diff --git a/smelt/glfw/smelt_internal.hpp b/smelt/glfw/smelt_internal.hpp index d7ec3c9..72d09cb 100644 --- a/smelt/glfw/smelt_internal.hpp +++ b/smelt/glfw/smelt_internal.hpp @@ -18,6 +18,7 @@ #include #include #include +#include #ifdef WIN32 #include #include @@ -110,6 +111,10 @@ public: virtual float smGetDelta(); virtual float smGetTime(); + virtual const char* smGetCPUModel(); + virtual const char* smGetOSInfo(); + virtual const char* smGetDispDriver(); + virtual SMSFX smSFXLoad(const char *path); virtual SMSFX smSFXLoadFromMemory(const char *ptr,DWORD size); virtual SMCHN smSFXPlay(SMSFX fx,int vol=100,int pan=0,float pitch=1.,bool loop=0); @@ -191,6 +196,7 @@ public: char logFile[256]; int limfps; bool hideMouse,noSuspend; + std::string osver,cpumodel,dispdrv; TOpenGLDevice *pOpenGLDevice; smVertex *vertexArray; -- cgit v1.2.3