修改游戏底层矩阵相关
This commit is contained in:
@@ -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