summaryrefslogtreecommitdiffstats
path: root/src/common/misc.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-10-27 21:15:14 +0100
committerkrzys-h <krzys_h@interia.pl>2014-10-27 21:15:14 +0100
commitd6e88a07b08585d6a6f151d34a07d8bca78711ea (patch)
tree1c3f385d0883ef3db787d91e6f11edd8323ebc03 /src/common/misc.cpp
parent990ecf729038baa995fd7d58d17aceecce343d4b (diff)
downloadcolobot-d6e88a07b08585d6a6f151d34a07d8bca78711ea.tar.gz
colobot-d6e88a07b08585d6a6f151d34a07d8bca78711ea.tar.bz2
colobot-d6e88a07b08585d6a6f151d34a07d8bca78711ea.zip
Support for %lvl% in TerrainInitTextures + cleanup
cleanup: * Removed CProfile::SetUserPath (unused) * Removed CProfile::GetUserBasedPath (unused) * Removed CProfile::CopyFileToTemp (i have no idea why it even existed) * Removed CopyFileListToTemp (it did the same as CopyFileToTemp but for multiple files, wasn't even fully implemented)
Diffstat (limited to 'src/common/misc.cpp')
-rw-r--r--src/common/misc.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/common/misc.cpp b/src/common/misc.cpp
index 1cbd3b1..4954fc0 100644
--- a/src/common/misc.cpp
+++ b/src/common/misc.cpp
@@ -232,44 +232,6 @@ void TimeToAsciiClean(time_t time, char *buffer)
when.tm_hour, when.tm_min);
}
-// Copy a list of numbered files into the temporary folder.
-
-bool CopyFileListToTemp(char* filename, int* list, int total)
-{
- /*char name[100];
- char ext[10];
- char file[100];
- char save[100];
- char* p;
- int i;
-
- strcpy(name, filename);
- p = strchr(name, '.');
- if ( p == 0 )
- {
- strcpy(ext, ".tga");
- }
- else
- {
- strcpy(ext, p);
- *p = 0;
- }
-
- for ( i=0 ; i<total ; i++ )
- {
- sprintf(file, "%s%.3d%s", name, list[i], ext); // nameNNN.ext
- CopyFileToTemp(file);
- }
-
- strcpy(save, g_userDir);
- strcpy(g_userDir, "temp");
- UserDir(file, filename, "textures");
- strcpy(filename, file);
- strcpy(g_userDir, save);
-*/
- return false;
-}
-
// Adds an extension to file, if doesn't already one.