ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/Installer/trunk/source/installer.cpp
(Generate patch)

Comparing AE/Installer/trunk/source/installer.cpp (file contents):
Revision 509 by gumby, Sat Apr 24 19:19:14 2010 UTC vs.
Revision 526 by gumby, Sat May 22 22:07:58 2010 UTC

# Line 27 | Line 27 | using namespace boost::posix_time;
27   // externs declared in installer.h
28   string strInstallCfg = "../GameDataFolder/Add.cfg";
29   string strEUFN = "Edition"; // GetUpdateStatus() may set this to "Edition-patch" later, but this is the assumed name of the new Edition folder in Updates/
30 + extern MainWindow* TheWindow;
31  
32   int globalizeData(void)
33   {
# Line 734 | Line 735 | void copyBSL(string copypath, vector<str
735                                                          copy_file(bsl_itr->path(),  "../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename());
736                                                  }
737                                          }
738 <                                        BSLfolders.push_back( dir_itr->path().filename() ); //add back check for addon
739 <                                        BSLlog << "Pushing " << dir_itr->path().filename() << "\n" ;
738 >                                        if( !pkg.hasAddon ) {
739 >                                                BSLfolders.push_back( dir_itr->path().filename() ); //add back check for addon
740 >                                                BSLlog << "Pushing " << dir_itr->path().filename() << "\n" ;
741 >                                        }
742                                  }
743                          }
744                  }
# Line 975 | Line 978 | int GetUpdateStatus(Install_info_cfg *cu
978                                  ModPackage installedPackage, updatePackage;
979                                  if (is_directory(install_iter->path()) && exists(install_iter->path().string() + "/Mod_Info.cfg"))
980                                  {
978                                        string blah =install_iter->path().string() + "/Mod_Info.cfg";
979                                        string blah2 = "packages/" + install_iter->path().filename() + "/Mod_Info.cfg";
981                                          fstream file;
982                                          file.open((install_iter->path().string() + "/Mod_Info.cfg").c_str());
983                                          if (!file.fail())
# Line 1488 | Line 1489 | bool ProcessAEUpdate(Install_info_cfg *c
1489                  CheckForGlobalization(true); // the 'true' value forces re-globalization
1490          
1491          globalPackages = getPackages(); // refresh the list in memory
1492 <        // TODO: Refresh the packages list in the window
1493 <
1492 >        wxCommandEvent e;
1493 >        TheWindow->OnRefreshButtonClick( e );
1494          return true;
1495   }
1496 < extern MainWindow* TheWindow;
1496 >
1497   void ProcessPackageUpdates(string pathToUpdate, string strPathToPackages)
1498   {
1499          ptime startTime(second_clock::local_time());

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)