mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(sound): Small script related improvements
* chore(build): rename src/util/Log.* to SysMessage.* * chore(ui): implement SetNonSpaceWrap() for error messages * chore(ui): move Video Script methods into CGVideoOptions class * chore(script): temporary fix GetNumOutputDrivers to eliminate loading errors * feat(sound): add SI2 Log methods * chore(sound): add SI2 CVars * chore(ui): implement Script_PlayGlueMusic * chore(sound): update SI2::Init() * fix: resolve compilation errors in variadic macros SI2_ERR and SI2_LOG --------- Co-authored-by: Tristan Cormier <cormiert2@outlook.com>
This commit is contained in:
parent
8596860120
commit
32cfe08d0b
21 changed files with 366 additions and 73 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "client/ClientServices.hpp"
|
||||
#include "gx/Coordinate.hpp"
|
||||
#include "gx/Device.hpp"
|
||||
#include "gx/CGVideoOptions.hpp"
|
||||
#include "math/Utils.hpp"
|
||||
#include "net/Connection.hpp"
|
||||
#include "net/Login.hpp"
|
||||
|
|
@ -16,7 +17,7 @@
|
|||
#include "ui/ScriptFunctions.hpp"
|
||||
#include "console/CVar.hpp"
|
||||
#include "util/Filesystem.hpp"
|
||||
#include "util/Log.hpp"
|
||||
#include "util/SysMessage.hpp"
|
||||
#include <cstdio>
|
||||
#include <common/MD5.hpp>
|
||||
|
||||
|
|
@ -512,7 +513,8 @@ void CGlueMgr::Resume() {
|
|||
|
||||
// TODO
|
||||
// AccountMsg_RegisterScriptFunctions();
|
||||
// CGVideoOptions::RegisterScriptFunctions();
|
||||
|
||||
CGVideoOptions::RegisterScriptFunctions();
|
||||
|
||||
// TODO
|
||||
// FrameScript::s_scriptFunctionsLoaded = 1;
|
||||
|
|
@ -523,7 +525,7 @@ void CGlueMgr::Resume() {
|
|||
|
||||
CWOWClientStatus status;
|
||||
|
||||
if (!SLogCreate("Logs\\GlueXML.log", 0, status.m_logFile)) {
|
||||
if (!SLogCreate("Logs\\GlueXML.log", 0, &status.m_logFile)) {
|
||||
SysMsgPrintf(SYSMSG_WARNING, "Cannot create WOWClient log file \"%s\"!", "Logs\\GlueXML.log");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue