mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 01:54:19 +00:00
48d82e9bfd
6010: Search for images/sounds in subfolders when readding in editor, show selection dialog if multiple files with the same are found, show error popup when file cannot be found r=heinrich5991 a=Robyt3 Search for the image/sound file in all subfolders of the mapres folder when using the "Readd" button in the editor. Show an error popup when readding fails: ![errorpopup](https://user-images.githubusercontent.com/23437060/200087069-bb735f14-b56f-458a-9571-c013fc19e59d.png) Show a selection dialog if multiple files with the same name are found in different subfolders: ![selectiondialog](https://user-images.githubusercontent.com/23437060/200125448-dccf47ba-d643-4f41-b256-eb90656ba693.png) ## Checklist - [X] Tested the change ingame - [X] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test (especially base/) or added coverage to integration test - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) 6015: Add tests for int packer r=heinrich5991 a=ChillerDragon This is an effort to test the Integer packer code. It should hopefully also be useful as some kind of documentation for everyone trying to understand how ints are packed. BTW github in my browser uses a weird angle for the slashes so it looks like this: ![image](https://user-images.githubusercontent.com/20344300/200165832-b35bae5c-6681-4a43-8a7c-b51b374b3da9.png) In my vscode it looks nice tho: ![image](https://user-images.githubusercontent.com/20344300/200165853-c7cedc06-a053-4c4c-aad1-711c403e9b84.png) Or in vim. So I blame the github web preview font being broken: ![image](https://user-images.githubusercontent.com/20344300/200165893-e30754eb-5570-433d-805d-3b8308ddd65d.png) Co-authored-by: Robert Müller <robytemueller@gmail.com> Co-authored-by: ChillerDragon <ChillerDragon@gmail.com> |
||
---|---|---|
.. | ||
client | ||
editor | ||
server | ||
collision.cpp | ||
collision.h | ||
ddracechat.h | ||
ddracecommands.h | ||
gamecore.cpp | ||
gamecore.h | ||
layers.cpp | ||
layers.h | ||
localization.cpp | ||
localization.h | ||
mapbugs.cpp | ||
mapbugs.h | ||
mapbugs_list.h | ||
mapitems.cpp | ||
mapitems.h | ||
mapitems_ex.cpp | ||
mapitems_ex.h | ||
mapitems_ex_types.h | ||
prng.cpp | ||
prng.h | ||
teamscore.cpp | ||
teamscore.h | ||
tuning.h | ||
variables.h | ||
version.h | ||
voting.h |