+statboard
.
KILLMSG
, but that wasn't accounted for when KILLMSGTEAM
was added. The following is now fixed when a team dies.
cl_dummy_hammer
overwrites the current dummy input. Looking at the code it seems that cl_dummy_hammer
has it's own CNetObj_PlayerInput
instead of using the already existing one, which seems strange.m_HammerInput
to m_Controls.m_aInputData[!g_Config.m_ClDummy]
instead. Also I'm unsure if your way is wanted behaviour.Error: No such keg: /usr/local/Cellar/python@3.10
50
for tick speed with SERVER_TICK_SPEED
or GameTickSpeed()
/TickSpeed()
where possible.
unsafe {
LLVM_InitializeAllTargets();
LLVM_InitializeAllTargetInfos();
LLVM_InitializeAllTargetMCs();
LLVM_InitializeAllAsmPrinters();
let llvm_context = LLVMContextCreate();
let op = module.as_operation().to_raw();
let llvm_module = mlirTranslateModuleToLLVMIR(op, llvm_context);
LLVMDumpModule(llvm_module);
let memory_module = LLVMWriteBitcodeToMemoryBuffer(llvm_module);
let mut error_buffer = null_mut();
let bin = LLVMCreateBinary(memory_module, llvm_context, error_buffer);
if bin.is_null() {
// error_buffer
panic!("null binary")
}
error_buffer = null_mut();
let target_triple = LLVMGetDefaultTargetTriple();
let target_cpu = LLVMGetHostCPUName();
let target_cpu_features = LLVMGetHostCPUFeatures();
let mut target: MaybeUninit<LLVMTargetRef> = MaybeUninit::uninit();
let target_ok = LLVMGetTargetFromTriple(target_triple, target.as_mut_ptr(), error_buffer);
dbg!(target_ok);
let target = target.assume_init();
// todo: error check
error_buffer = null_mut();
let machine = LLVMCreateTargetMachine(
target,
target_triple.cast(),
target_cpu.cast(),
target_cpu_features.cast(),
LLVMCodeGenOptLevel::LLVMCodeGenLevelDefault,
LLVMRelocMode::LLVMRelocDefault,
LLVMCodeModel::LLVMCodeModelDefault,
);
let filename = CString::new("program.o").unwrap();
let _ = LLVMTargetMachineEmitToFile(
machine,
llvm_module,
filename.as_ptr().cast_mut(),
LLVMCodeGenFileType::LLVMObjectFile,
error_buffer,
);
// then: ld -demangle -no_deduplicate -dynamic -dylib -arch arm64 program.o -o program.dylib
}