mirror of
https://github.com/libretro/RetroArch
synced 2025-02-05 06:40:07 +00:00
Move default config location
This commit is contained in:
parent
840cfee660
commit
5c726f9644
@ -49,7 +49,7 @@ The default configuration is defined in config.def.h.
|
||||
These can later be tweaked by using the ssnes config file.
|
||||
A sample configuration file is installed to /etc/ssnes.cfg.
|
||||
This is the system-wide config file.
|
||||
Each user should create a config file in $XDG\_CONFIG\_HOME/ssnes.
|
||||
Each user should create a config file in $XDG\_CONFIG\_HOME/ssnes/ssnes.cfg.
|
||||
The users only need to configure a certain option if the desired value deviates from the value defined in config.def.h.
|
||||
|
||||
To configure joypads, start up <tt>jstest /dev/input/js0</tt> to determine which joypad buttons (and axis) to use.
|
||||
|
@ -52,7 +52,7 @@ output main_fragment(float2 texCoord : TEXCOORD0, uniform sampler2D decal : TEXU
|
||||
float2 rubyTextureSize = IN.texture_size;
|
||||
|
||||
float2 xy = barrelDistortion(texCoord.xy);
|
||||
float2 one = 0.999/rubyTextureSize;
|
||||
float2 one = 1.0/rubyTextureSize;
|
||||
xy = xy + float2(0.0 , -0.5 * (phase + (1-phase) * rubyInputSize.y/rubyOutputSize.y) * one.y);
|
||||
float4 texels[8];
|
||||
texels[0] = TEX2D(xy + float2(-one.x,0.0));
|
||||
|
@ -120,9 +120,9 @@ void parse_config(void)
|
||||
const char *home = getenv("HOME");
|
||||
if (xdg)
|
||||
{
|
||||
char conf_path[strlen(xdg) + strlen("/ssnes ")];
|
||||
char conf_path[strlen(xdg) + strlen("/ssnes/ssnes.cfg ")];
|
||||
strcpy(conf_path, xdg);
|
||||
strcat(conf_path, "/ssnes");
|
||||
strcat(conf_path, "/ssnes/ssnes.cfg");
|
||||
conf = config_file_new(conf_path);
|
||||
}
|
||||
else if (home)
|
||||
|
2
ssnes.c
2
ssnes.c
@ -195,7 +195,7 @@ static void print_help(void)
|
||||
puts("Usage: ssnes [rom file] [-h/--help | -s/--save]");
|
||||
puts("\t-h/--help: Show this help message");
|
||||
puts("\t-s/--save: Path for save file (*.srm). Required when rom is input from stdin");
|
||||
puts("\t-c/--config: Path for config file. Defaults to $XDG_CONFIG_HOME/ssnes");
|
||||
puts("\t-c/--config: Path for config file. Defaults to $XDG_CONFIG_HOME/ssnes/ssnes.cfg");
|
||||
puts("\t-v/--verbose: Verbose logging");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user