Skip to content

Instantly share code, notes, and snippets.

View pollend's full-sized avatar
:octocat:
working on random stuff

Michael Pollind pollend

:octocat:
working on random stuff
View GitHub Profile
// MIT License
//
// Copyright (c) 2017 Nikolay Govorov
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
#include "graphics/RIDescriptorSetAllocator.h"
#include "system/stb_ds.h"
#include <cassert>
struct RIDescriptorSetSlot *AllocDescriptorsetSlot( struct RIDescriptorSetAlloc *alloc )
{
if( alloc->blocks == NULL || alloc->blockIndex == RESERVE_BLOCK_SIZE ) {
struct RIDescriptorSetSlot *block = (struct RIDescriptorSetSlot*)calloc( RESERVE_BLOCK_SIZE, sizeof( struct RIDescriptorSetSlot ) );
alloc->blockIndex = 0;
arrpush( alloc->blocks, block );
use core::str;
use std::{fmt::Display, hash::Hash, u64};
// unique id salt
const UNQ_ID_SALT: u64 = 10393820183;
pub type UidBuf = [u8; 10];
#[derive(Clone)]
pub struct UnqID {
id: u32,
#!/bin/bash
# Get the process name as an argument
process_name="wf_steam.x86_64"
# Loop until the process is found
while true; do
# Use pgrep to find the PID of the process
pid=$(pgrep -f "$process_name")
#include "Forge/Config.h"
#include "Common_3/OS/Interfaces/IOperatingSystem.h"
#include "Common_3/Utilities/Interfaces/IFileSystem.h"
#include "Forge/Graphics/TF_GPUConfig.h"
#include <X11/Xlib.h>
#ifdef TF_TARGET_LINUX
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.
load(
"@prelude//cxx:comp_db.bzl",
"CxxCompilationDbInfo",
)
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
/* Copyright (c) 2021 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
error: 'ubit' is not a valid command.
(lldb) bt
* thread #1, name = 'Editor', stop reason = breakpoint 1.1
frame #0: 0x00007ffff0d9d7d3 libEditorLib.so`AzToolsFramework::ToolsApplication::UndoPressed(this=0x00007fffffffc080) at ToolsApplication.cpp:117
9:17
frame #1: 0x00007ffcce96e85b libComponentEntityEditorPlugin.so`decltype(*InvokeTraits::forward<AzToolsFramework::ToolsApplicationRequests*&>(fp0)
.*fp()) AZStd::Internal::INVOKE<void (AzToolsFramework::ToolsApplicationRequests::*)(), AzToolsFramework::ToolsApplicationRequests*&, void>(f=0x00007
fffffffaf48, arg0=0x00007fffffffaef8) at invoke_traits.h:177:20
frame #2: 0x00007ffcce96e7bf libComponentEntityEditorPlugin.so`AZStd::invoke_result<void (AzToolsFramework::ToolsApplicationRequests::*)(), AzToo
lsFramework::ToolsApplicationRequests*&>::type AZStd::invoke<void (AzToolsFramework::ToolsApplicationRequests::*)(), AzToolsFramework::ToolsApplicati
diff --git a/source/cgame/cg_players.cpp b/source/cgame/cg_players.cpp
index a1aeba8c6..8a9589546 100644
--- a/source/cgame/cg_players.cpp
+++ b/source/cgame/cg_players.cpp
@@ -270,7 +270,6 @@ void CG_LoadClientInfo( cg_clientInfo_t *ci, const char *info, int client )
s = Info_ValueForKey( info, "m" );
ci->modelindex = s && s[0] ? atoi( s ) : 0;
-
s = Info_ValueForKey( info, "steam_id" );