X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fresources.h;h=dee4ee003905e43572012dd062ba06d9b16ae354;hb=b47938ec825a6bbf5ef8f49f0f893d2647a79c71;hp=c152f0ceed848c5bc0a9f319a3698cd8293c8678;hpb=ef57479f613b900b73eba8e8f4d026aae0de25cc;p=supertux.git diff --git a/src/resources.h b/src/resources.h index c152f0cee..dee4ee003 100644 --- a/src/resources.h +++ b/src/resources.h @@ -62,13 +62,6 @@ enum { extern char* soundfilenames[NUM_SOUNDS]; -extern Surface* img_waves[3]; -extern Surface* img_water; -extern Surface* img_pole; -extern Surface* img_poletop; -extern Surface* img_flag[2]; -extern Surface* img_cloud[2][4]; - extern Surface* img_super_bkgd; extern MusicRef herring_song; @@ -96,12 +89,14 @@ 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) +/** maps a virtual resource path to a real path (ie. levels/bla is mapped to + * $DATADIR/levels/bla or $HOME/.supertux/levels/bla) + * All paths inside the game should be handled in as virtual paths and then + * expanded with this function just before the call to fopen or std::ifstream. + */ std::string get_resource_filename(const std::string& resource); void loadshared(); void unloadshared(); #endif -