pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2932 - branches/pingus_sdl/src


From: grumbel at BerliOS
Subject: [Pingus-CVS] r2932 - branches/pingus_sdl/src
Date: Wed, 15 Aug 2007 18:20:34 +0200

Author: grumbel
Date: 2007-08-15 18:20:34 +0200 (Wed, 15 Aug 2007)
New Revision: 2932

Modified:
   branches/pingus_sdl/src/pingus_main.cpp
   branches/pingus_sdl/src/pingus_menu.cpp
   branches/pingus_sdl/src/plf_res_mgr.cpp
Log:
- .scm to .pingus

Modified: branches/pingus_sdl/src/pingus_main.cpp
===================================================================
--- branches/pingus_sdl/src/pingus_main.cpp     2007-08-15 16:19:44 UTC (rev 
2931)
+++ branches/pingus_sdl/src/pingus_main.cpp     2007-08-15 16:20:34 UTC (rev 
2932)
@@ -724,10 +724,10 @@
       bool successfull = true;
       if (!System::exist(levelfile))
         {
-          if (System::exist(levelfile + ".scm"))
-            levelfile += ".scm";
-          else if (System::exist("levels/" + levelfile + ".scm"))
-            levelfile = "levels/" + levelfile + ".scm";
+          if (System::exist(levelfile + ".pingus"))
+            levelfile += ".pingus";
+          else if (System::exist("levels/" + levelfile + ".pingus"))
+            levelfile = "levels/" + levelfile + ".pingus";
           else
             {
               pout << _("PingusMain: Levelfile not found, ignoring: ") << 
levelfile << std::endl;

Modified: branches/pingus_sdl/src/pingus_menu.cpp
===================================================================
--- branches/pingus_sdl/src/pingus_menu.cpp     2007-08-15 16:19:44 UTC (rev 
2931)
+++ branches/pingus_sdl/src/pingus_menu.cpp     2007-08-15 16:20:34 UTC (rev 
2932)
@@ -131,7 +131,7 @@
 {
   if (filedialog)
     delete filedialog;
-  filedialog = new FileDialog(this, ".scm", 
+  filedialog = new FileDialog(this, ".pingus", 
                               path_manager.complete("levels/"), true);
   manager->push_menu (filedialog);
 }
@@ -255,7 +255,7 @@
 PingusMenu::load(const std::string &file, const std::string &filemask)
 {
   // Level
-  if (filemask == ".scm")
+  if (filemask == ".pingus")
     do_contrib(file);
   // Worldmap
   else if (filemask == ".worldmap")

Modified: branches/pingus_sdl/src/plf_res_mgr.cpp
===================================================================
--- branches/pingus_sdl/src/plf_res_mgr.cpp     2007-08-15 16:19:44 UTC (rev 
2931)
+++ branches/pingus_sdl/src/plf_res_mgr.cpp     2007-08-15 16:20:34 UTC (rev 
2932)
@@ -95,7 +95,7 @@
 PingusLevel
 PLFResMgr::load_plf(const std::string& res_name)
 {
-  return load_plf_raw(res_name, path_manager.complete("levels/" + res_name + 
".scm"));
+  return load_plf_raw(res_name, path_manager.complete("levels/" + res_name + 
".pingus"));
 }
 
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]