Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
8ac5935e
Commit
8ac5935e
authored
Oct 11, 2014
by
pokergaming
Browse files
added "gui" method to check whether Pd is run with a gui
parent
8f4d418d
Changes
1
Show whitespace changes
Inline
Side-by-side
pd/src/x_interface.c
View file @
8ac5935e
...
...
@@ -821,6 +821,13 @@ void pdinfo_audio_blocksize(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
info_out
((
t_text
*
)
x
,
s
,
1
,
at
);
}
void
pdinfo_gui
(
t_pdinfo
*
x
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
)
{
t_atom
at
[
1
];
SETFLOAT
(
at
,
(
t_float
)(
!
sys_nogui
));
info_out
((
t_text
*
)
x
,
s
,
1
,
at
);
}
void
pdinfo_version
(
t_pdinfo
*
x
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
)
{
int
major
=
0
,
minor
=
0
,
bugfix
=
0
;
...
...
@@ -883,6 +890,8 @@ void pdinfo_setup(void)
gensym
(
"dir"
),
A_GIMME
,
0
);
class_addmethod
(
pdinfo_class
,
(
t_method
)
pdinfo_dsp
,
gensym
(
"dsp-status"
),
A_GIMME
,
0
);
class_addmethod
(
pdinfo_class
,
(
t_method
)
pdinfo_gui
,
gensym
(
"gui"
),
A_GIMME
,
0
);
class_addmethod
(
pdinfo_class
,
(
t_method
)
pdinfo_midi_api
,
gensym
(
"midi-api"
),
A_GIMME
,
0
);
class_addmethod
(
pdinfo_class
,
(
t_method
)
pdinfo_midi_apilist
,
...
...
Write
Preview
Supports
Markdown
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