You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
/*=============================================================================
|
||
|
|
NetworkFileSystemModule.cpp: Implements the FNetworkFileSystemModule class.
|
||
|
|
=============================================================================*/
|
||
|
|
|
||
|
|
#include "NetworkFileSystemPrivatePCH.h"
|
||
|
|
|
||
|
|
#include "ModuleManager.h"
|
||
|
|
|
||
|
|
DEFINE_LOG_CATEGORY(LogFileServer);
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Implements the NetworkFileSystem module.
|
||
|
|
*/
|
||
|
|
class FNetworkFileSystemModule
|
||
|
|
: public INetworkFileSystemModule
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
// Begin INetworkFileSystemModule interface
|
||
|
|
|
||
|
|
virtual INetworkFileServer* CreateNetworkFileServer( int32 Port, const FFileRequestDelegate* InFileRequestDelegate, const FRecompileShadersDelegate* InRecompileShadersDelegate ) const OVERRIDE
|
||
|
|
{
|
||
|
|
if (Port < 0)
|
||
|
|
{
|
||
|
|
Port = DEFAULT_FILE_SERVING_PORT;
|
||
|
|
}
|
||
|
|
|
||
|
|
return new FNetworkFileServer(Port, InFileRequestDelegate, InRecompileShadersDelegate);
|
||
|
|
}
|
||
|
|
|
||
|
|
// End INetworkFileSystemModule interface
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
IMPLEMENT_MODULE(FNetworkFileSystemModule, NetworkFileSystem);
|