diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-02-15 01:52:25 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-02-15 01:52:25 +0800 |
commit | 41250bda2a3e3383b8825a31610102826c32c486 (patch) | |
tree | d195e679257a3c1352043670d7888096d55582f1 /smelt/glfw/smelt_internal.hpp | |
parent | 7398bdc3eb0f58cdfa9b588e1c6c8e5ef3797ac6 (diff) | |
download | SMELT-41250bda2a3e3383b8825a31610102826c32c486.tar.xz |
Added 3 methods for getting certain types of system information.
Also improved format of related information reported in logs.
Diffstat (limited to 'smelt/glfw/smelt_internal.hpp')
-rw-r--r-- | smelt/glfw/smelt_internal.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <cstdlib> #include <ctime> #include <cstdarg> +#include <string> #ifdef WIN32 #include <windows.h> #include <intrin.h> @@ -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; |