printf("\n"); printf("Long options only:\n"); printf("       --no-ips               Do not apply IPS patch\n");
void usage(char *cmd){        printf("%s [options] file-name\n",cmd);        printf("  options:\n");        printf("  -1 , --video-1x             1x\n");        printf("  -2 , --video-2x             2x\n");        printf("  -3 , --video-3x             3x\n");        printf("  -4 , --video 4x             4x\n");                printf("  -F , --fullscreen           Full screen\n");        printf("  -G , --gdb==PROTOCOL        GNU Remote Stub mode:\n");        printf("                               tcp      - use TCP at port 55555\n");        printf("                               tcp:PORT - use TCP at port PORT\n");        printf("                               pipe     - use pipe transport\n");        printf("  -N , --no-debug             Don't parse debug information\n");        printf("  -S , --flash-size=SIZE      Set the Flash size\n");        printf("       --flash-64k             0 -  64K Flash\n");        printf("       --flash-128k            1 - 128K Flash\n");        printf("  -Y , --yuv=TYPE             Use YUV overlay for drawing:\n");        printf("                               0 - YV12\n");        printf("                               1 - UYVY\n");        printf("                               2 - YVYU\n");        printf("                               3 - YUY2\n");        printf("                               4 - IYUV\n");        printf("  -b , --bios=BIOS            Use given bios file\n");        printf("  -c,  --config=FILE          Read the given configuration file\n");        printf("  -d , --debug                Enter debugger\n");                printf("  -f , --filter=FILTER        Select filter:\n");        printf("       --filter-normal         0 - normal mode\n");        printf("       --filter-tv-mode        1 - TV Mode\n");        printf("       --filter-2xsai          2 - 2xSaI\n");        printf("       --filter-super-2xsai    3 - Super 2xSaI\n");        printf("       --filter-super-eagle    4 - Super Eagle\n");        printf("       --filter-pixelate       5 - Pixelate\n");        printf("       --filter-motion-blur    6 - Motion Blur\n");        printf("       --filter-advmame        7 - AdvanceMAME Scale2x\n");        printf("       --filter-simple2x       8 - Simple2x\n");        printf("  -h , --help                 Print this help\n");        printf("  -p , --profile=[HERTZ]      Enable profiling\n");        printf("  -s , --frameskip=FRAMESKIP  Set frame skip (0...9)\n");        printf("  -t , --save-type=TYPE       Set the available save type\n");        printf("       --save-auto             0 - Automatic (EEPROM, SRAM, FLASH)\n");        printf("       --save-eeprom           1 - EEPROM\n");        printf("       --save-sram             2 - SRAM\n");        printf("       --save-flash            3 - FLASH\n");        printf("       --save-sensor           4 - EEPROM+Sensor\n");        printf("  -v , --verbose=VERBOSE      Set verbose logging (trace.log)\n");        printf("                                 1 - SWI\n");        printf("                                 2 - Unaligned memory access\n");        printf("                                 4 - Illegal memory write\n");        printf("                                 8 - Illegal memory read\n");        printf("                                16 - DMA 0\n");        printf("                                32 - DMA 1\n");        printf("                                64 - DMA 2\n");        printf("                               128 - DMA 3\n");}