mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 02:18:35 +00:00
Code style cleanup
This commit is contained in:
parent
62c722384f
commit
32016f2987
@ -33,14 +33,14 @@
|
||||
|
||||
using namespace SourceMod;
|
||||
|
||||
FileDownloader::FileDownloader( const char *file )
|
||||
FileDownloader::FileDownloader(const char *file)
|
||||
{
|
||||
fpLocal = fopen(file, "wb");
|
||||
}
|
||||
|
||||
FileDownloader::~FileDownloader(void)
|
||||
{
|
||||
if(this->fpLocal != NULL)
|
||||
if (this->fpLocal != NULL)
|
||||
{
|
||||
fclose(this->fpLocal);
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* vim: set ts=4 :
|
||||
* =============================================================================
|
||||
* SourceMod Updater Extension
|
||||
* SourceMod Webternet Extension
|
||||
* Copyright (C) 2004-2009 AlliedModders LLC. All rights reserved.
|
||||
* =============================================================================
|
||||
*
|
||||
|
||||
@ -29,8 +29,8 @@
|
||||
* Version: $Id$
|
||||
*/
|
||||
|
||||
#ifndef _INCLUDE_SOURCEMOD_UPDATER_MEMORY_DOWNLOADER_H_
|
||||
#define _INCLUDE_SOURCEMOD_UPDATER_MEMORY_DOWNLOADER_H_
|
||||
#ifndef _INCLUDE_SOURCEMOD_CURLEXT_MEMORY_DOWNLOADER_H_
|
||||
#define _INCLUDE_SOURCEMOD_CURLEXT_MEMORY_DOWNLOADER_H_
|
||||
|
||||
#include <IBaseDownloader.h>
|
||||
|
||||
@ -58,5 +58,5 @@ namespace SourceMod
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* _INCLUDE_SOURCEMOD_UPDATER_MEMORY_DOWNLOADER_H_ */
|
||||
#endif /* _INCLUDE_SOURCEMOD_CURLEXT_MEMORY_DOWNLOADER_H_ */
|
||||
|
||||
|
||||
@ -591,10 +591,8 @@ const sp_nativeinfo_t curlext_natives[] =
|
||||
{"HTTP_GetBodyContent", HTTP_GetBodyContent},
|
||||
|
||||
// Methodmap versions
|
||||
{"HTTPFileDownloader.BodySize.get", HTTP_GetBodySize},
|
||||
{"HTTPFileDownloader.GetBodyContent", HTTP_GetBodyContent},
|
||||
{"HTTPMemoryDownloader.BodySize.get", HTTP_GetBodySize},
|
||||
{"HTTPMemoryDownloader.GetBodyContent", HTTP_GetBodyContent},
|
||||
{"HTTPDownloader.BodySize.get", HTTP_GetBodySize},
|
||||
{"HTTPDownloader.GetBodyContent", HTTP_GetBodyContent},
|
||||
{"HTTPSession.SetFailOnHTTPError", HTTP_SetFailOnHTTPError},
|
||||
{"HTTPSession.GetLastError", HTTP_GetLastError},
|
||||
{"HTTPSession.Download", HTTP_Download},
|
||||
@ -835,7 +833,8 @@ void HTTPHandleDispatcher::OnHandleDestroy(HandleType_t type, void *object)
|
||||
}
|
||||
}
|
||||
|
||||
IPlugin *FindPluginByContext(IPluginContext *pContext) {
|
||||
IPlugin *FindPluginByContext(IPluginContext *pContext)
|
||||
{
|
||||
IPlugin *pFoundPlugin;
|
||||
|
||||
IPluginIterator *pPluginIterator = plsys->GetPluginIterator();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user