Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Craft
Commits
3513d34e
Commit
3513d34e
authored
Jan 16, 2018
by
Libretro-Admin
Browse files
Fix build
parent
7dc449eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
3513d34e
...
...
@@ -147,7 +147,7 @@ int db_init(char *path)
rc
=
sqlite3_prepare_v2
(
db
,
set_key_query
,
-
1
,
&
set_key_stmt
,
NULL
);
if
(
rc
)
return
rc
;
sqlite3_exec
(
db
,
"begin;"
,
NULL
,
NULL
,
NULL
);
db_worker_start
();
db_worker_start
(
""
);
return
0
;
}
...
...
@@ -486,7 +486,7 @@ void db_worker_start(char *path) {
thrd_create
(
&
thrd
,
db_worker_run
,
path
);
}
void
db_worker_stop
()
{
void
db_worker_stop
(
void
)
{
if
(
!
db_enabled
)
return
;
mtx_lock
(
&
mtx
);
...
...
src/db.h
View file @
3513d34e
...
...
@@ -33,8 +33,8 @@ void db_load_lights(Map *map, int p, int q);
void
db_load_signs
(
SignList
*
list
,
int
p
,
int
q
);
int
db_get_key
(
int
p
,
int
q
);
void
db_set_key
(
int
p
,
int
q
,
int
key
);
void
db_worker_start
();
void
db_worker_stop
();
void
db_worker_start
(
char
*
path
);
void
db_worker_stop
(
void
);
int
db_worker_run
(
void
*
arg
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment