~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/gui/RomAuditDialog.cxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-06-02 07:33:16 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120602073316-20r4hr32t4oj36u9
Tags: 3.7-1
* New upstream version.
* Update description and documentation with new features in 3.7, notably
  Blargg TV filters (replacing the filters available in versions 3.4.1
  and earlier).
* Switch to debhelper compatibility level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: RomAuditDialog.cxx 2318 2011-12-31 21:56:36Z stephena $
 
17
// $Id: RomAuditDialog.cxx 2477 2012-05-16 20:52:33Z stephena $
18
18
//
19
19
//   Based on code from ScummVM - Scumm Interpreter
20
20
//   Copyright (C) 2002-2004 The ScummVM project
127
127
 
128
128
  FilesystemNode node(auditPath);
129
129
  FSList files;
 
130
  files.reserve(2048);
130
131
  node.getChildren(files, FilesystemNode::kListFilesOnly);
131
132
 
132
133
  // Create a progress dialog box to show the progress of processing
141
142
  for(unsigned int idx = 0; idx < files.size(); idx++)
142
143
  {
143
144
    string extension;
144
 
    if(!files[idx].isDirectory() &&
 
145
    if(files[idx].isFile() &&
145
146
       LauncherFilterDialog::isValidRomName(files[idx].getPath(), extension))
146
147
    {
147
148
      // Calculate the MD5 so we can get the rest of the info