Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brittney allen
purr-data
Commits
3806867c
Commit
3806867c
authored
8 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'aggraef/purr-data-testing'
parents
6ca7f12c
5af5c086
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debuild/userconfig.patch
+8
-26
8 additions, 26 deletions
debuild/userconfig.patch
pd/src/s_file.c
+4
-2
4 additions, 2 deletions
pd/src/s_file.c
with
12 additions
and
28 deletions
debuild/userconfig.patch
+
8
−
26
View file @
3806867c
diff --git a/pd/src/s_file.c b/pd/src/s_file.c
index
1c18096f..576e4c36
100644
index
32f54c31..304524d5
100644
--- a/pd/src/s_file.c
+++ b/pd/src/s_file.c
@@ -62,7 +62,7 @@
static void sys_initloadpreferences( void)
sys_libdir->s_name);
@@ -46,7 +46,7 @@
void sys_doflags( void);
if (homedir)
- snprintf(user_prefs_file, FILENAME_MAX, "%s/.pd-l2ork/user.settings", homedir);
+ snprintf(user_prefs_file, FILENAME_MAX, "%s/.purr-data/user.settings", homedir);
if (stat(user_prefs_file, &statbuf) == 0)
strncpy(filenamebuf, user_prefs_file, FILENAME_MAX);
else if (stat(default_prefs_file, &statbuf) == 0)
@@ -143,7 +143,7 @@
static void sys_initsavepreferences( void)
#ifdef UNIX
-#define USER_CONFIG_DIR ".pd-l2ork"
+#define USER_CONFIG_DIR ".purr-data"
static char *sys_prefbuf;
if (!homedir)
return;
- snprintf(filenamebuf, FILENAME_MAX, "%s/.pd-l2ork", homedir);
+ snprintf(filenamebuf, FILENAME_MAX, "%s/.purr-data", homedir);
filenamebuf[FILENAME_MAX-1] = 0;
if (stat(filenamebuf, &statbuf) || !S_ISDIR(statbuf.st_mode)) {
// user config dir doesn't exist yet, try to create it
@@ -152,7 +152,7 @@
static void sys_initsavepreferences( void)
return;
}
}
- snprintf(filenamebuf, FILENAME_MAX, "%s/.pd-l2ork/user.settings", homedir);
+ snprintf(filenamebuf, FILENAME_MAX, "%s/.purr-data/user.settings", homedir);
filenamebuf[FILENAME_MAX-1] = 0;
if ((sys_prefsavefp = fopen(filenamebuf, "w")) == NULL)
{
This diff is collapsed.
Click to expand it.
pd/src/s_file.c
+
4
−
2
View file @
3806867c
...
...
@@ -646,8 +646,10 @@ char *sys_recent_files[MAX_RECENT_FILES];
static
int
fexists
(
const
char
*
s
)
{
struct
stat
statbuf
;
return
stat
(
s
,
&
statbuf
)
==
0
;
FILE
*
fp
=
sys_fopen
(
s
,
"r"
);
if
(
!
fp
)
return
0
;
sys_fclose
(
fp
);
return
1
;
}
void
sys_add_recent_file
(
const
char
*
s
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment