OpenTTD Source: src/network/core/tcp_content.cpp File Reference

OpenTTD Source 15.0-RC2

Functions
tcp_content.cpp File Reference

Basic functions to receive and send Content packets. More...

`#include "../../stdafx.h"`
`#include "../../textfile_gui.h"`
`#include "../../newgrf_config.h"`
`#include "../../base_media_base.h"`
`#include "../../base_media_graphics.h"`
`#include "../../base_media_music.h"`
`#include "../../base_media_sounds.h"`
`#include "../../ai/ai.hpp"`
`#include "../../game/game.hpp"`
`#include "../../fios.h"`
`#include "tcp_content.h"`
`#include "table/strings.h"`
`#include "../../safeguards.h"`

Go to the source code of this file.

## Functions
Subdirectory | GetContentInfoSubDir (ContentType type)
| Helper to get the subdirectory a ContentInfo is located in.

## Detailed Description

Basic functions to receive and send Content packets.

Definition in file tcp_content.cpp.

## Function Documentation

## ◆ GetContentInfoSubDir()

Subdirectory GetContentInfoSubDir | ( | ContentType | type | ) |

Helper to get the subdirectory a ContentInfo is located in.

Parameters

  type | The type of content.

Returns
  The subdirectory the content is located in.

Definition at line 190 of file tcp_content.cpp.

References AI_DIR, AI_LIBRARY_DIR, BASESET_DIR, CONTENT_TYPE_AI, CONTENT_TYPE_AI_LIBRARY, CONTENT_TYPE_BASE_GRAPHICS, CONTENT_TYPE_BASE_MUSIC, CONTENT_TYPE_BASE_SOUNDS, CONTENT_TYPE_GAME, CONTENT_TYPE_GAME_LIBRARY, CONTENT_TYPE_HEIGHTMAP, CONTENT_TYPE_NEWGRF, CONTENT_TYPE_SCENARIO, GAME_DIR, GAME_LIBRARY_DIR, HEIGHTMAP_DIR, NEWGRF_DIR, NO_DIRECTORY, and SCENARIO_DIR.

Referenced by ClientNetworkContentSocketHandler::AfterDownload(), GetFullFilename(), and ContentInfo::GetTextfile().