storage.cpp
You can use it to find the local data and config directory of ddnet/teeworlds. It also provides methods (for now only open_file
) to access these directories, with logic to first scan the config directory and then afterwards the data directory #[non_exhaustive]
in the next incompatible version so you can add more variants laterVersion
enum in crate twstorage
./usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member compress.c.obj at 4144
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member crc32.c.obj at 5748
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member inflate.c.obj at 64708
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member uncompr.c.obj at 118466
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member zutil.c.obj at 119780
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/game-server.dir/build.make:1185: DDNet-Server] Error 1
make[1]: *** [CMakeFiles/Makefile2:287: CMakeFiles/game-server.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
(edited)sudo apt install build-essential cargo cmake git glslang-tools google-mock libavcodec-extra libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpng-dev libsdl2-dev libsqlite3-dev libssl-dev libvulkan-dev libwavpack-dev libx264-dev python3 rustc spirv-tools
then remove CmakeCache.txt and try to compile again/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member compress.c.obj at 4144
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member crc32.c.obj at 5748
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member inflate.c.obj at 64708
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member uncompr.c.obj at 118466
/usr/bin/ld.gold: error: /mnt/g/Dev/Curl/lib/libz.a: plugin failed to claim member zutil.c.obj at 119780
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/game-server.dir/build.make:1185: DDNet-Server] Error 1
make[1]: *** [CMakeFiles/Makefile2:287: CMakeFiles/game-server.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
(edited)ResizeImage
function directly instead.
m_pClient->
in game/client/prediction/entities/character.cpp? (edited)error: ‘m_pClient’ was not declared in this scope;
m_pClient
) of a class which does not have it IClient *pClient = Kernel()->RequestInterface<IClient>();