1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

Fixed bug where blank lines were read as plugins

Fixed bug where newlines weren't stripped in config file

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4022
This commit is contained in:
David Anderson 2005-04-18 19:50:33 +00:00
parent 7eecefe875
commit 1789ad8324
2 changed files with 7 additions and 1 deletions

View File

@ -296,10 +296,16 @@ int LoadPluginsFromFile(const char *file)
char buffer[255], error[255], full_path[128];
const char *ptr, *ext;
size_t length;
while (!feof(fp))
{
buffer[0] = '\0';
fgets(buffer, sizeof(buffer)-1, fp);
length = strlen(buffer);
if (!length)
continue;
if (buffer[length-1] == '\n')
buffer[length-1] = '\0';
if (buffer[0] == ';' || strncmp(buffer, "//", 2) == 0)
continue;
//First find if it's an absolute path or not...

View File

@ -87,7 +87,7 @@
AdditionalDependencies="tier0.lib vstdlib.lib"
OutputFile="$(OutDir)/server.dll"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
GenerateDebugInformation="FALSE"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"