summaryrefslogtreecommitdiffstats
path: root/src/metafile.cpp
diff options
context:
space:
mode:
authorKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
committerKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
commit84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 (patch)
tree842825145ada8e6f53d1de9f100383cc028d2b46 /src/metafile.cpp
parenta4c804b49ec872b71bd5a0167c3ad45704a3cc30 (diff)
downloadcolobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.gz
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.bz2
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.zip
Added license info using a small program SrcHead.
Diffstat (limited to 'src/metafile.cpp')
-rw-r--r--src/metafile.cpp24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/metafile.cpp b/src/metafile.cpp
index 7cc9cfd..3b971bd 100644
--- a/src/metafile.cpp
+++ b/src/metafile.cpp
@@ -1,4 +1,18 @@
-// metafile.cpp
+// * This file is part of the COLOBOT source code
+// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
+// *
+// * This program is free software: you can redistribute it and/or modify
+// * it under the terms of the GNU General Public License as published by
+// * the Free Software Foundation, either version 3 of the License, or
+// * (at your option) any later version.
+// *
+// * This program is distributed in the hope that it will be useful,
+// * but WITHOUT ANY WARRANTY; without even the implied warranty of
+// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// * GNU General Public License for more details.
+// *
+// * You should have received a copy of the GNU General Public License
+// * along with this program. If not, see .
#define STRICT
#define D3D_OVERLOADS
@@ -175,7 +189,7 @@ int CMetaFile::Open(char *metaname, char *filename)
{
int index, i;
- if ( m_bOpen ) // fichier déjà ouvert ?
+ if ( m_bOpen ) // fichier d�j� ouvert ?
{
Close();
}
@@ -231,7 +245,7 @@ int CMetaFile::RetLength()
return len;
}
-// Positionnement dans le fichier, relatif au début.
+// Positionnement dans le fichier, relatif au d�but.
int CMetaFile::Seek(int offset)
{
@@ -336,7 +350,7 @@ int CMetaFile::MetaOpen(char *metaname)
m_list[i].stream = fopen(metaname, "rb");
if ( m_list[i].stream == 0 ) return -1;
- strcpy(m_list[i].name, metaname); // mémorise le nom
+ strcpy(m_list[i].name, metaname); // m�morise le nom
fread(&m_list[i].total, sizeof(int), 1, m_list[i].stream);
m_list[i].headers = (MetaHeader*)malloc(sizeof(MetaHeader)*m_list[i].total);
@@ -355,7 +369,7 @@ int CMetaFile::MetaOpen(char *metaname)
return -1;
}
-// Cherche si le metafile est déjà ouvert. Retourne l'index ou -1.
+// Cherche si le metafile est d�j� ouvert. Retourne l'index ou -1.
int CMetaFile::MetaSearch(char *metaname)
{