Go to the documentation of this file.
22 main(
int argc,
char **argv) {
26 cerr <<
"Usage: apply_patch <patch_file> <old_file>" << endl;
27 cerr <<
"Will overwrite old_file" << endl;
39 cerr <<
"Applying patch file " << patch <<
" to " << file << endl;
40 if (pfile.apply(patch, file) ==
false) {
41 cerr <<
"apply patch failed" << endl;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void preprocess_argv(int &argc, char **&argv)
Processes the argc, argv pair as needed before passing it to getopt().
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
void set_binary()
Indicates that the filename represents a binary file.