-DCMAKE_BUILD_TYPE=Debug
?c++
dbg_msg("debugging", "%s", pName);
src/game/client/components/skins.cpp:444
and see what the output isEscapeUrl
which indeed is a curl callc++
dbg_msg("debugging2", "%s", aEscapedName);
maybe add this directly tooc++
#include <execinfo.h>
void dbg_print_stack_trace()
{
int j, nptrs;
void *buffer[100];
char **strings;
nptrs = backtrace(buffer, 100);
dbg_msg("System", "backtrace of %d addresses", nptrs);
strings = backtrace_symbols(buffer, nptrs);
if(strings != nullptr)
{
for(j = 0; j < nptrs; j++)
dbg_msg("System", "%s", strings[j]);
free(strings);
}
}
then add
c++
dbg_print_stack_trace();
after
c++
dbg_msg("debugging", "%s", pName);
% cmake .. -DCMAKE_EXE_LINKER_FLAGS="-rdynamic"
invoke cmake with this additional parameterc++
#include <execinfo.h>
void dbg_print_stack_trace()
{
int j, nptrs;
void *buffer[100];
char **strings;
nptrs = backtrace(buffer, 100);
dbg_msg("System", "backtrace of %d addresses", nptrs);
strings = backtrace_symbols(buffer, nptrs);
if(strings != nullptr)
{
for(j = 0; j < nptrs; j++)
dbg_msg("System", "%s", strings[j]);
free(strings);
}
}
then add
c++
dbg_print_stack_trace();
after
c++
dbg_msg("debugging", "%s", pName);
const CSkin *CSkins::FindImpl(const char *pName)
break set
-> break command add
-> bt
-> continue
-> DONE
╰───────────────────────
looks like we broke the console output on windows again somehow CGhostItem::Empty
is the function to check if a ghost is used or not?bool Empty() const { return m_Path.Size() == 0; }