mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
.github
dAuthServer
dChatFilter
dChatServer
dCommon
dDatabase
dGame
dMasterServer
dNet
dPhysics
dScripts
dWorldServer
dZoneManager
migrations
resources
thirdparty
SQLite
cpp-httplib
cpplinq
libbcrypt
raknet
Lib
Source
AsynchronousFileIO.cpp
AsynchronousFileIO.h
AutoRPC.cpp
AutoRPC.h
AutopatcherPatchContext.h
AutopatcherRepositoryInterface.h
BigTypes.h
BitStream.cpp
BitStream.h
BitStream_NoTemplate.cpp
BitStream_NoTemplate.h
CheckSum.cpp
CheckSum.h
ClientContextStruct.h
CommandParserInterface.cpp
CommandParserInterface.h
ConnectionGraph.cpp
ConnectionGraph.h
ConsoleServer.cpp
ConsoleServer.h
DS_BPlusTree.h
DS_BinarySearchTree.h
DS_BytePool.cpp
DS_BytePool.h
DS_ByteQueue.cpp
DS_ByteQueue.h
DS_Heap.h
DS_HuffmanEncodingTree.cpp
DS_HuffmanEncodingTree.h
DS_HuffmanEncodingTreeFactory.h
DS_HuffmanEncodingTreeNode.h
DS_LinkedList.h
DS_List.h
DS_Map.h
DS_MemoryPool.h
DS_OrderedChannelHeap.h
DS_OrderedList.h
DS_Queue.h
DS_QueueLinkedList.h
DS_RangeList.h
DS_Table.cpp
DS_Table.h
DS_Tree.h
DS_WeightedGraph.h
DataBlockEncryptor.cpp
DataBlockEncryptor.h
DataCompressor.cpp
DataCompressor.h
DirectoryDeltaTransfer.cpp
DirectoryDeltaTransfer.h
EmailSender.cpp
EmailSender.h
EncodeClassName.cpp
EpochTimeToString.cpp
EpochTimeToString.h
Export.h
ExtendedOverlappedPool.cpp
ExtendedOverlappedPool.h
FileList.cpp
FileList.h
FileListTransfer.cpp
FileListTransfer.h
FileListTransferCBInterface.h
FileOperations.cpp
FileOperations.h
FormatString.cpp
FormatString.h
FullyConnectedMesh.cpp
FullyConnectedMesh.h
FunctionThread.cpp
FunctionThread.h
Gen_RPC8.cpp
Gen_RPC8.h
GetTime.cpp
GetTime.h
GridSectorizer.cpp
GridSectorizer.h
HTTPConnection.cpp
HTTPConnection.h
InlineFunctor.cpp
InlineFunctor.h
InternalPacket.h
Itoa.cpp
Itoa.h
Kbhit.h
LightweightDatabaseClient.cpp
LightweightDatabaseClient.h
LightweightDatabaseCommon.cpp
LightweightDatabaseCommon.h
LightweightDatabaseServer.cpp
LightweightDatabaseServer.h
LinuxStrings.cpp
LinuxStrings.h
LogCommandParser.cpp
LogCommandParser.h
MTUSize.h
Makefile.am
MessageFilter.cpp
MessageFilter.h
MessageIdentifiers.h
NatPunchthrough.cpp
NatPunchthrough.h
NetworkIDManager.cpp
NetworkIDManager.h
NetworkIDObject.cpp
NetworkIDObject.h
PacketConsoleLogger.cpp
PacketConsoleLogger.h
PacketFileLogger.cpp
PacketFileLogger.h
PacketLogger.cpp
PacketLogger.h
PacketPool.h
PacketPriority.h
PluginInterface.cpp
PluginInterface.h
RPCMap.cpp
RPCMap.h
RPCNode.h
RSACrypt.h
RakAssert.h
RakMemoryOverride.cpp
RakMemoryOverride.h
RakNet.vcproj
RakNet3.0.vcproj
RakNetCommandParser.cpp
RakNetCommandParser.h
RakNetDefines.h
RakNetStatistics.cpp
RakNetStatistics.h
RakNetTransport.cpp
RakNetTransport.h
RakNetTypes.cpp
RakNetTypes.h
RakNetVersion.h
RakNet_vc8.vcproj
RakNetworkFactory.cpp
RakNetworkFactory.h
RakPeer.cpp
RakPeer.h
RakPeerInterface.h
RakSleep.cpp
RakSleep.h
RakString.cpp
RakString.h
RakThread.cpp
RakThread.h
Rand.cpp
Rand.h
ReadyEvent.cpp
ReadyEvent.h
RefCountedObj.h
ReliabilityLayer.cpp
ReliabilityLayer.h
Replica.h
ReplicaEnums.h
ReplicaManager.cpp
ReplicaManager.h
ReplicaManager2.cpp
ReplicaManager2.h
Rijndael-Boxes.h
Rijndael.h
Router.cpp
Router.h
RouterInterface.h
SHA1.cpp
SHA1.h
SimpleMutex.cpp
SimpleMutex.h
SimpleTCPServer.h
SingleProducerConsumer.h
SocketLayer.cpp
SocketLayer.h
StringCompressor.cpp
StringCompressor.h
StringTable.cpp
StringTable.h
SuperFastHash.cpp
SuperFastHash.h
SystemAddressList.cpp
SystemAddressList.h
TCPInterface.cpp
TCPInterface.h
TableSerializer.cpp
TableSerializer.h
TelnetTransport.cpp
TelnetTransport.h
ThreadPool.h
ThreadsafePacketLogger.cpp
ThreadsafePacketLogger.h
TransportInterface.h
Types.h
_FindFirst.cpp
_FindFirst.h
rijndael.cpp
CMakeLists.txt
version.txt
recastnavigation
tinyxml2
vanity
.clang-format
.clang-tidy
.gitignore
.gitmodules
CMakeLists.txt
CMakeVariables.txt
CONTRIBUTING.md
LICENSE
README.md
build.sh
logo.png
versions.txt
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
/**
|
|
* Original file by the_viking, fixed by Rômulo Fernandes
|
|
* Should emulate windows finddata structure
|
|
*/
|
|
|
|
#ifndef GCC_FINDFIRST_H
|
|
#define GCC_FINDFIRST_H
|
|
|
|
#if (defined(__GNUC__) || defined(__GCCXML__)) && !defined(__WIN32)
|
|
|
|
#include <dirent.h>
|
|
|
|
#include "RakString.h"
|
|
|
|
#define _A_NORMAL 0x00 // Normal file
|
|
#define _A_RDONLY 0x01 // Read-only file
|
|
#define _A_HIDDEN 0x02 // Hidden file
|
|
#define _A_SYSTEM 0x04 // System file
|
|
#define _A_VOLID 0x08 // Volume ID
|
|
#define _A_SUBDIR 0x10 // Subdirectory
|
|
#define _A_ARCH 0x20 // File changed since last archive
|
|
#define FA_NORMAL 0x00 // Synonym of _A_NORMAL
|
|
#define FA_RDONLY 0x01 // Synonym of _A_RDONLY
|
|
#define FA_HIDDEN 0x02 // Synonym of _A_HIDDEN
|
|
#define FA_SYSTEM 0x04 // Synonym of _A_SYSTEM
|
|
#define FA_LABEL 0x08 // Synonym of _A_VOLID
|
|
#define FA_DIREC 0x10 // Synonym of _A_SUBDIR
|
|
#define FA_ARCH 0x20 // Synonym of _A_ARCH
|
|
|
|
|
|
const unsigned STRING_BUFFER_SIZE = 512;
|
|
|
|
typedef struct _finddata_t
|
|
{
|
|
char name[STRING_BUFFER_SIZE];
|
|
int attrib;
|
|
unsigned long size;
|
|
} _finddata;
|
|
|
|
/** Hold information about the current search
|
|
*/
|
|
typedef struct _findinfo_t
|
|
{
|
|
DIR* openedDir;
|
|
RakNet::RakString filter;
|
|
RakNet::RakString dirName;
|
|
} _findinfo;
|
|
|
|
long _findfirst(const char *name, _finddata_t *f);
|
|
int _findnext(long h, _finddata_t *f);
|
|
int _findclose(long h);
|
|
|
|
#endif
|
|
#endif
|