*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1059 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+17
-1
@@ -284,10 +284,26 @@ int main(int argc, char **argv)
|
||||
exec("config/menus.cfg");
|
||||
exec("config/prefabs.cfg");
|
||||
exec("config/sounds.cfg");
|
||||
exec("config/securemaps.cfg");
|
||||
execfile("config/servers.cfg");
|
||||
persistidents = true;
|
||||
|
||||
gzFile f = gzopen("config/maps.dat", "rb9");
|
||||
if(f)
|
||||
{
|
||||
int n;
|
||||
gzread(f, &n, sizeof(int));
|
||||
endianswap(&n, sizeof(int), 1);
|
||||
loopi(n)
|
||||
{
|
||||
string s;
|
||||
gzread(f, s, sizeof(string));
|
||||
enet_uint32 c;
|
||||
gzread(f, &c, sizeof(enet_uint32));
|
||||
mapinfo[newstring(s)] = c;
|
||||
}
|
||||
gzclose(f);
|
||||
}
|
||||
|
||||
if(!execfile("config/saved.cfg")) exec("config/defaults.cfg");
|
||||
execfile("config/autoexec.cfg");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user