projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9578dfc
)
fix small poroblems
author
hgn
<hgodden00@gmail.com>
Tue, 26 Dec 2023 20:23:55 +0000
(20:23 +0000)
committer
hgn
<hgodden00@gmail.com>
Tue, 26 Dec 2023 20:23:55 +0000
(20:23 +0000)
vg_console.h
patch
|
blob
|
history
vg_input.h
patch
|
blob
|
history
diff --git
a/vg_console.h
b/vg_console.h
index d7f7f9f3e030452a75e85f29ddb5eeef09200f76..3112cde10ea7a86383a75eb2f00d0a17ca052d5c 100644
(file)
--- a/
vg_console.h
+++ b/
vg_console.h
@@
-214,6
+214,11
@@
static void vg_console_load_autos(void){
static void _vg_console_write_persistent(void){
FILE *fp = fopen( "cfg/auto.conf", "w" );
+
+ if( !fp ){
+ vg_error( "Cannot open cfg/auto.conf\n" );
+ return;
+ }
for( int i=0; i<vg_console.var_count; i ++ ){
struct vg_var *cv = &vg_console.vars[i];
diff --git
a/vg_input.h
b/vg_input.h
index cd7130d745f0aae33d608de4efed992790aa85d2..0122c92e5043f26ccbb9141fb1ad688f3dd366f4 100644
(file)
--- a/
vg_input.h
+++ b/
vg_input.h
@@
-2,7
+2,6
@@
#ifndef VG_INPUT_H
#define VG_INPUT_H
-#include "common.h"
#include "vg/vg_loader.h"
#define VG_MAX_CONTROLLERS 4