struct S {
char x : 3; // 3 bits
int : 0; // "advance to int alignment boundary"
char y : 3; // 3 bits
};
this is how i know it behaves in cpp but i think c is the same in this regard (edited)ctrl + w
bind in firefox, every time i try to write code in godbolt, I try to delete a word and it closes a tab xdwindow.onbeforeunload = (e) => e.preventDefault()
window.onbeforeunload = (e) => e.preventDefault()
sizeof
?printf("distance=%ld size=%ld\n", (char *)&m_aNodes[1] - (char *)&m_aNodes[0], sizeof(m_aNodes[0]));
this indeed prints 16 twice nice+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
| m_Bits | m_NumBits | short1 | short2 | sym| padding |
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
i guess it should be 16 because it has to also aligned by biggest value in a struct which is unsigned, so by 4 bytesstruct u32 {
u16 low;
u16 high;
}
(edited)struct u32 {
u16 low;
u16 high;
}
(edited)float
and I think I don't need floats in my languagereadability-identifier-naming.StaticVariableIgnoredRegexp
.
static
variables as const
and use UPPER_CASE
for names when possible.
static
variables when possible.
static
variables.
static
function GetKeyBindModifiersName
by argument instead of returning pointer to static
buffer.
nimrocks
bae37ab
Add 0.7 client support - ChillerDragon
fe99a34
Improve 0.7 skins - Kaffeine
093a784
Add custom ddnet 0.7 skin greensward - ChillerDragon
be67622
Resend 0.7 skin change if it got filtered by the server - ChillerDragon
8903f49
Render skins in 0.7 demos - ChillerDragon
399075c
Display 0.7 skins in chat - ChillerDragon
53b0186
Remove netversion from demo editor init - ChillerDragon
e0bc98e
Add alpha support for 0.7 skins - ChillerDragon
afd1bd9
Merge pull request #5949 from ChillerDragon/pr_07_client - def-[ 54%] Building CXX object CMakeFiles/game-client.dir/src/game/generated/checksum.cpp.o
/home/ewan/ddnet/ddnet/build/src/game/generated/checksum.cpp:1:10: fatal error: engine/client/checksum.h: No such file or directory
1 | #include <engine/client/checksum.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
as long as src is added in target_/include_directories this should be impossible[ 54%] Building CXX object CMakeFiles/game-client.dir/src/game/generated/checksum.cpp.o
/home/ewan/ddnet/ddnet/build/src/game/generated/checksum.cpp:1:10: fatal error: engine/client/checksum.h: No such file or directory
1 | #include <engine/client/checksum.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
as long as src is added in target_/include_directories this should be impossible { pkgs ? import <nixpkgs> { } }:
let
name = "ddnet";
in (
pkgs.mkShell {
name = name;
nativeBuildInputs = with pkgs;[
gcc
mold
buildPackages.cmake
ninja
pkg-config
rustc
cargo
rustPlatform.cargoSetupHook
];
nativeCheckInputs = with pkgs; [
gtest
];
buildInputs = with pkgs; [
fish
SDL2.dev
zlib.dev
freetype.dev
libnotify.dev
xorg.libX11.dev
glew
libGL.dev
libGLU.dev
curl
pcre
python3
sqlite
libogg
opusfile
wavpack
# optional dependencies: video recorder
ffmpeg_7
x264
# optional dependencies: Vulkan support
vulkan-loader.dev
vulkan-headers
glslang
spirv-tools
];
#runScript = "${pkgs.lib.getExe pkgs.fish}";
shellHook = ''
exec ${pkgs.lib.getExe pkgs.fish} -iC '
function fish_right_prompt
set_color $fish_color_cwd
printf "*${name}"
set_color normal
end'
'';
}
)
cmake -B build -S . -DCMAKE_CXX_FLAGS="-Wno-format-security" -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=mold" -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=mold" && cmake --build build --parallel
outputs = {
nixpkgs,
...} : let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
inputsFrom = [pkgs.ddnet];
packages = [
pkgs.libmysqlclient.dev
];
Thats my flake.nix, since you're using shell.nix No real Idea why its Not workingRUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
(edited){
outputs =
{ nixpkgs
, ...
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell.override
{
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
# ^ the money
}
{
inputsFrom = [ pkgs.ddnet ];
packages = [
pkgs.fish
];
shellHook = ''
exec ${pkgs.lib.getExe pkgs.fish} -iC '
function fish_right_prompt
set_color $fish_color_cwd
printf "*ddnet"
set_color normal
end'
'';
};
};
}
(edited)2024-08-10 08:19:14 I gfx: Created Vulkan 1.1 context.
...
2024-08-10 08:19:15 I vulkan: vulkan warning: A shader file could not load correctly.
2024-08-10 08:19:15 I vulkan: vulkan warning: A shader file could not load correctly.
2024-08-10 08:19:15 I vulkan: vulkan warning: A shader file could not load correctly.
2024-08-10 08:19:15 I vulkan: vulkan warning: A shader file could not load correctly.
2024-08-10 08:19:15 I vulkan: vulkan warning: A shader file could not load correctly.
2024-08-10 08:19:15 I vulkan: vulkan warning: A shader file could not load correctly.
...
2024-08-10 08:19:15 I Warning: Could not initialize Vulkan: A shader file could not load correctly. Could not initialize the given graphics backend, reverting to the default backend now.
{ pkgs ? import <nixpkgs> { } }:
let
name = "ddnet";
in (
pkgs.mkShell {
name = name;
nativeBuildInputs = with pkgs;[
gcc
mold
buildPackages.cmake
ninja
pkg-config
rustc
cargo
rustPlatform.cargoSetupHook
];
nativeCheckInputs = with pkgs; [
gtest
];
buildInputs = with pkgs; [
fish
SDL2.dev
zlib.dev
freetype.dev
libnotify.dev
xorg.libX11.dev
glew
libGL.dev
libGLU.dev
curl
pcre
python3
sqlite
libogg
opusfile
wavpack
# optional dependencies: video recorder
ffmpeg_7
x264
# optional dependencies: Vulkan support
vulkan-loader.dev
vulkan-headers
glslang
spirv-tools
];
#runScript = "${pkgs.lib.getExe pkgs.fish}";
shellHook = ''
exec ${pkgs.lib.getExe pkgs.fish} -iC '
function fish_right_prompt
set_color $fish_color_cwd
printf "*${name}"
set_color normal
end'
'';
}
)
skins7
folder is not created automatically and should we really use a separate folder than 0.7?debug
is enabled, consistent with logging for regular skins.
IsImageFormatRgba
to check for RGBA image format, so this also shows a warning popup.
CheckImageDivisibility
instead of enforcing exact size of xmas hat and bot decoration images to allow higher resolution images.
hamas
topic?TcpStream::connect("127.0.0.1:8369")
- that's all u needTcpStream::connect("127.0.0.1:8369")
- that's all u need 2021
edition, and only supports 2015
and 2018
editions.2021
edition, and only supports 2015
and 2018
editions. sv_register ipv4
sudo iptables -A INPUT -p udp --dport 8301 -j ACCEPT
(edited)sudo iptables -A INPUT -p udp --dport 8301 -j ACCEPT
(edited)