OpenTTD Source 20260421-master-gc2fbc6fdeb
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
typeThe type of content.
Returns
The subdirectory the content is located in.

Definition at line 184 of file tcp_content.cpp.

References Ai, AiLibrary, BaseGraphics, BaseMusic, Baseset, BaseSounds, Gs, GsLibrary, Heightmap, NewGRF, NewGrf, None, and Scenario.

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