Panda3D
check_crc.cxx
1 // Filename: check_crc.cxx
2 // Created by:
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "download_utils.h"
16 #include "pystub.h"
17 
18 int
19 main(int argc, char *argv[]) {
20  // A call to pystub() to force libpystub.so to be linked in.
21  pystub();
22 
23  if (argc < 2) {
24  cerr << "Usage: check_crc <file>" << endl;
25  return 1;
26  }
27 
28  Filename source_file = argv[1];
29 
30  cout << check_crc(source_file);
31 
32  return 0;
33 }
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44