15 #include "pandabase.h"
17 #include "panda_getopt.h"
18 #include "preprocess_argv.h"
19 #include "patchfile.h"
23 main(
int argc,
char **argv) {
27 preprocess_argv(argc, argv);
30 cerr <<
"Usage: apply_patch <patch_file> <old_file>" << endl;
31 cerr <<
"Will overwrite old_file" << endl;
43 cerr <<
"Applying patch file " << patch <<
" to " << file << endl;
44 if (pfile.apply(patch, file) ==
false) {
45 cerr <<
"apply patch failed" << endl;
void set_binary()
Indicates that the filename represents a binary file.
The name of a file, such as a texture file or an Egg file.