[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src game.cpp
From: |
Yann Dirson |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src game.cpp |
Date: |
Sat, 19 Feb 2005 19:32:38 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Yann Dirson <address@hidden> 05/02/20 00:32:38
Modified files:
src : game.cpp
Log message:
force a refresh of the zipios collection after downloading a campaign
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.191&tr2=1.192&r1=text&r2=text
Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.191 wesnoth/src/game.cpp:1.192
--- wesnoth/src/game.cpp:1.191 Sat Feb 19 09:26:31 2005
+++ wesnoth/src/game.cpp Sun Feb 20 00:32:38 2005
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.191 2005/02/19 09:26:31 isaaccp Exp $ */
+/* $Id: game.cpp,v 1.192 2005/02/20 00:32:38 ydirson Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1168,6 +1168,12 @@
unarchive_campaign(cfg);
+ // when using zipios, force a reread zip and directory indices
+ if (!filesystem_init()) {
+ gui::show_error_message(disp(), _("Cannot rescan the
filesystem"));
+ return;
+ }
+
//force a reload of configuration information
const bool old_cache = use_caching_;
use_caching_ = false;