mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-25 21:58:49 +01:00
move configuration from ~/.x49gp/ to ~/.config/x49gp/
This commit is contained in:
parent
2e440861bc
commit
299be1bf84
3 changed files with 5 additions and 5 deletions
|
@ -154,7 +154,7 @@ Start Over:
|
||||||
* clean slate?
|
* clean slate?
|
||||||
|
|
||||||
```
|
```
|
||||||
rm -r ~/.x49gp
|
rm -r ~/.config/x49gp
|
||||||
```
|
```
|
||||||
|
|
||||||
* soft reset only?
|
* soft reset only?
|
||||||
|
|
4
dist/x49gp.man.in
vendored
4
dist/x49gp.man.in
vendored
|
@ -178,7 +178,7 @@ as the configuration file instead of the default one. See below for details on t
|
||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width indent
|
.Bl -tag -width indent
|
||||||
.It Sy ~/. Ns Nm Ns Sy /config
|
.It Sy ~/.config/ Ns Nm Ns Sy /config
|
||||||
The default location for the configuration file. The file format is the INI-like
|
The default location for the configuration file. The file format is the INI-like
|
||||||
.Dq key-file
|
.Dq key-file
|
||||||
format defined by GLib. The configuration file stores, for the most part, the state of the calculator's hardware, excluding the memory. The peripherals' official names according the the S3C2410 datasheet are used as section names with the prefix
|
format defined by GLib. The configuration file stores, for the most part, the state of the calculator's hardware, excluding the memory. The peripherals' official names according the the S3C2410 datasheet are used as section names with the prefix
|
||||||
|
@ -214,4 +214,4 @@ The default name of the file backing the SRAM memory; required size: 512 KiB.
|
||||||
The default name of the file backing the S3C2410's internal SRAM memory; required size: 4 KiB.
|
The default name of the file backing the S3C2410's internal SRAM memory; required size: 4 KiB.
|
||||||
.El
|
.El
|
||||||
.Sh CAVEATS
|
.Sh CAVEATS
|
||||||
The emulation of the calculators' hardware is not fully accurate. Most notably, emulation speed is not authentic (it depends on the host's capabilites), and communication ports (serial, infrared, USB) are not available. For most purposes this is good enough, though.
|
The emulation of the calculators' hardware is not fully accurate. Most notably, emulation speed is not authentic (it depends on the host's capabilites), and communication ports (serial, infrared, USB) are not available. For most purposes this is good enough, though.
|
||||||
|
|
|
@ -653,10 +653,10 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt.config == NULL) {
|
if (opt.config == NULL) {
|
||||||
char config_dir[strlen(progname) + 2];
|
char config_dir[strlen(progname) + 9];
|
||||||
|
|
||||||
home = g_get_home_dir();
|
home = g_get_home_dir();
|
||||||
sprintf(config_dir, ".%s", progname);
|
sprintf(config_dir, ".config/%s", progname);
|
||||||
opt.config = g_build_filename(home, config_dir,
|
opt.config = g_build_filename(home, config_dir,
|
||||||
"config", NULL);
|
"config", NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue