mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
*** empty log message ***
This commit is contained in:
parent
ac405714ea
commit
e6d6f3d529
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
#include <crypto_utils.h>
|
#include <crypto_utils.h>
|
||||||
#include <hashVal.h>
|
#include <hashVal.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "filename.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[]) {
|
main(int argc, char *argv[]) {
|
||||||
@ -38,20 +38,16 @@ main(int argc, char *argv[]) {
|
|||||||
cerr << usagestr << endl;
|
cerr << usagestr << endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
source_file = argv[2];
|
source_file = Filename::from_os_specific(argv[2]);
|
||||||
} else {
|
} else {
|
||||||
source_file = argv[1];
|
source_file = Filename::from_os_specific(argv[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32_VC
|
if(!source_file.exists()) {
|
||||||
if(_access(source_file.c_str(), 0) == -1) { // does this exist on unix?
|
|
||||||
if(errno==ENOENT) {
|
|
||||||
cerr << usagestr << endl;
|
cerr << usagestr << endl;
|
||||||
cerr << source_file << " not found!\n";
|
cerr << source_file << " not found!\n";
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
HashVal hash;
|
HashVal hash;
|
||||||
md5_a_file(source_file, hash);
|
md5_a_file(source_file, hash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user