X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Finit.c;h=3118aa35a76b2d294e2b62d3495f8860a02d96ed;hb=dfe0a71a9939e0c55bb54dcc92db1749e8e21747;hp=b45aa038385e924a91343f2c841e5c5a593f617f;hpb=b201bc433fb5ad1a9f0b7780ac6a73a3617f6dd6;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index b45aa038..3118aa35 100644 --- a/src/init.c +++ b/src/init.c @@ -366,6 +366,36 @@ void InitGfxBackground() redraw_mask = REDRAW_ALL; } +void ReloadCustomArtwork() +{ + if (artwork.graphics_set_current != artwork.gfx_current->name) + { + int i; + + for(i=0; iname; + } + + if (artwork.sounds_set_current != artwork.snd_current->name) + { + printf("reload sounds ...\n"); + + artwork.sounds_set_current = artwork.snd_current->name; + } + + if (artwork.music_set_current != artwork.mus_current->name) + { + printf("reload music ...\n"); + + artwork.music_set_current = artwork.mus_current->name; + } +} + void InitGadgets() { CreateLevelEditorGadgets();