Lines Matching defs:resources

38 "The second form lists the resources of all given files.\n"
40 "The third form manipulates the resources of one or more files according to\n"
45 " - Add the resources read from file <input file> to the current\n"
55 " - Excludes resources with type <type> and, if given, ID <id> from\n"
56 " being written to the output file. This applies to all resources\n"
60 " - Changes the output file to <output file>. All resources specified\n"
66 " is an executable file, the resources will be added to it (if the\n"
67 " file already has resources, they will be removed before). If it\n"
70 " resources. The initial output file is \"xres.output.rsrc\".\n"
74 " - Only resources with type <type> and, if given, ID <id> will be\n"
75 " written to the output file. This applies to all resources\n"
341 // open the resources
342 BResources resources;
343 error = resources.SetTo(&file, false);
349 fprintf(stderr, "Error: Failed to read resources from file "
356 // print resources
357 printf("\n%s resources:\n\n", path);
366 resources.GetResourceInfo(i, &type, &id, &name, &size); i++) {
409 // open the resources
410 BResources resources;
411 error = resources.SetTo(&file, false);
417 fprintf(stderr, "Error: Failed to read resources from input "
423 resources.PreloadResourceType();
425 // add resources
431 resources.GetResourceInfo(i, &type, &id, &name, &size);
434 const void *data = resources.LoadResource(type, id, &size);
436 fprintf(stderr, "Error: Failed to read resources from input "
496 fprintf(stderr, "Error: Failed to write resources to output "
523 // open the resources
527 fprintf(stderr, "Error: Failed to init resources for output "
905 // delete state (will flush resources)