Updates for v0.9-rc1. Use --features rather than spamming down --help.

This commit is contained in:
Themaister 2011-10-11 20:02:46 +02:00
parent c7f8110670
commit bc999e72fa
6 changed files with 21 additions and 8 deletions

View File

@ -166,10 +166,10 @@ clean:
rm -f tools/*.o
dist_x86: all
zip -r ssnes-win32-0.8.2.zip $(TARGET) $(JTARGET) ssnes.cfg snes.dll SDL.dll
zip -r ssnes-win32-0.9-rc1.zip $(TARGET) $(JTARGET) ssnes.cfg snes.dll SDL.dll
dist_x86_64: all
zip -r ssnes-win64-0.8.2.zip $(TARGET) $(JTARGET) ssnes.cfg snes.dll SDL.dll
zip -r ssnes-win64-0.9-rc1.zip $(TARGET) $(JTARGET) ssnes.cfg snes.dll SDL.dll
libs_x86:
wget https://github.com/downloads/Themaister/SSNES/SSNES-win32-libs.zip --no-check-certificate

View File

@ -110,6 +110,12 @@ static const bool _ffmpeg_supp = true;
static const bool _ffmpeg_supp = false;
#endif
#ifdef HAVE_X264RGB
static const bool _x264rgb_supp = true;
#else
static const bool _x264rgb_supp = false;
#endif
#ifdef HAVE_SRC
static const bool _src_supp = true;
#else

View File

@ -1,6 +1,6 @@
.\" ssnes-joyconfig.1:
.TH "SSNES-JOYCONFIG" "1" "January 2011" "SSNES-JOYCONFIG" "System Manager's Manual: ssnes-joyconfig"
.TH "SSNES-JOYCONFIG" "1" "October 2011" "SSNES-JOYCONFIG" "System Manager's Manual: ssnes-joyconfig"
.SH NAME

View File

@ -1,6 +1,6 @@
.\" ssnes.1:
.TH "SSNES" "1" "January 2011" "SSNES" "System Manager's Manual: ssnes"
.TH "SSNES" "1" "October 2011" "SSNES" "System Manager's Manual: ssnes"
.SH NAME
@ -27,6 +27,9 @@ If no rom file path is defined on the command line, \fBssnes\fR will try to load
\fB--help, -h\fR
Prints help text.
\fB--features\fR
Prints available features compiled into SSNES, then exits.
.TP
\fB--save PATH, -s PATH\fR
Overrides the path used for save ram (*.srm).

View File

@ -1,7 +1,7 @@
. qb/qb.params.sh
PACKAGE_NAME=ssnes
PACKAGE_VERSION=0.8.2
PACKAGE_VERSION=0.9-rc1
# Adds a command line opt to ./configure --help
# $1: Variable (HAVE_ALSA, HAVE_OSS, etc)

10
ssnes.c
View File

@ -334,7 +334,7 @@ static int16_t input_state(bool port, unsigned device, unsigned index, unsigned
#endif
#ifdef _WIN32
#define PACKAGE_VERSION "0.8.2"
#define PACKAGE_VERSION "0.9-rc1"
#endif
#include "config.features.h"
@ -361,6 +361,7 @@ static void print_features(void)
_PSUPP(fbo, "FBO", "OpenGL render-to-texture (multi-pass shaders)");
_PSUPP(dynamic, "Dynamic", "Dynamic run-time loading of libsnes library");
_PSUPP(ffmpeg, "FFmpeg", "On-the-fly recording of gameplay with libavcodec");
_PSUPP(x264rgb, "x264 RGB", "x264 lossless RGB recording for FFmpeg");
_PSUPP(src, "SRC", "libsamplerate audio resampling");
_PSUPP(configfile, "Config file", "Configuration file support");
_PSUPP(freetype, "FreeType", "TTF font rendering with FreeType");
@ -376,6 +377,7 @@ static void print_help(void)
puts("===================================================================");
puts("Usage: ssnes [rom file] [options...]");
puts("\t-h/--help: Show this help message.");
puts("\t--features: Prints available features compiled into SSNES.");
puts("\t-s/--save: Path for save file (*.srm). Required when rom is input from stdin.");
puts("\t-f/--fullscreen: Start SSNES in fullscreen regardless of config settings.");
puts("\t-S/--savestate: Path to use for save states. If not selected, *.state will be assumed.");
@ -411,8 +413,6 @@ static void print_help(void)
puts("\t--bps: Specifies path for BPS patch that will be applied to ROM.");
puts("\t-X/--xml: Specifies path to XML memory map.");
puts("\t-D/--detach: Detach SSNES from the running console. Not relevant for all platforms.\n");
print_features();
}
static void set_basename(const char *path)
@ -540,6 +540,7 @@ static void parse_input(int argc, char *argv[])
{ "bps", 1, &val, 'B' },
{ "xml", 1, NULL, 'X' },
{ "detach", 0, NULL, 'D' },
{ "features", 0, &val, 'f' },
{ NULL, 0, NULL, 0 }
};
@ -738,6 +739,9 @@ static void parse_input(int argc, char *argv[])
break;
}
#endif
case 'f':
print_features();
exit(0);
default:
break;