X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fresources.h;h=c152f0ceed848c5bc0a9f319a3698cd8293c8678;hb=0bae2ff3f1c4ca528e38903766d4c046f6456e42;hp=2519b046f4d902dd6844e56841508e586ebcd280;hpb=d46c78c842ab4090a3f46e560c891234167f124b;p=supertux.git diff --git a/src/resources.h b/src/resources.h index 2519b046f..c152f0cee 100644 --- a/src/resources.h +++ b/src/resources.h @@ -32,6 +32,8 @@ class Font; class Surface; } +class TileManager; + /* Sound files: */ enum { SND_JUMP, @@ -73,6 +75,7 @@ extern MusicRef herring_song; extern MusicRef level_end_song; extern SpriteManager* sprite_manager; +extern TileManager* tile_manager; extern Menu* contrib_menu; extern Menu* contrib_subset_menu; @@ -93,6 +96,10 @@ extern Font* white_small_text; extern Font* white_big_text; extern Font* yellow_nums; +// maps a virtual resource path to a real path (ie. levels/bla is mapped to +// $DATADIR/levels/bla or $HOME/.supertux/levels/bla) +std::string get_resource_filename(const std::string& resource); + void loadshared(); void unloadshared();