修改游戏底层矩阵相关
This commit is contained in:
@@ -102,6 +102,7 @@ void SquirrelEx::Init()
|
||||
|
||||
dbg = sqdbg_attach_debugger(v);
|
||||
sqdbg_listen_socket(dbg, 2222);
|
||||
fclose(file1);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ private:
|
||||
//工作目录
|
||||
std::string WorkPath;
|
||||
//热重载
|
||||
bool HotReload = true;
|
||||
bool HotReload = false;
|
||||
std::map<std::string, int> _scriptmap;
|
||||
|
||||
};
|
||||
|
||||
@@ -4318,6 +4318,11 @@ void SQDebugServer::OnRequest_SetBreakpoints(const json_table_t &arguments, int
|
||||
return;
|
||||
}
|
||||
|
||||
//必须切割否则无法取消断点
|
||||
#ifdef SQDBG_SOURCENAME_HAS_PATH
|
||||
StripFileName(&srcname.ptr, &srcname.len);
|
||||
#endif
|
||||
|
||||
RemoveBreakpoints(srcname);
|
||||
|
||||
DAP_START_RESPONSE(seq, "setBreakpoints");
|
||||
@@ -18191,7 +18196,6 @@ void SQDebugServer::RemoveBreakpoints(const string_t &source)
|
||||
for (unsigned int i = 0; i < m_nFunctionBreakpointsIdx;)
|
||||
{
|
||||
breakpoint_t &bp = m_Breakpoints[i];
|
||||
|
||||
if (bp.src.IsEqualTo(src))
|
||||
{
|
||||
FreeBreakpoint(bp);
|
||||
@@ -19968,6 +19972,7 @@ void SQDebugServer::DebugHook(HSQUIRRELVM vm, int type,
|
||||
sqstring_t src;
|
||||
src.Assign(sourcename, srclen);
|
||||
|
||||
|
||||
breakpoint_t *bp = GetBreakpoint(line, src);
|
||||
|
||||
if (bp)
|
||||
|
||||
Reference in New Issue
Block a user