Timeline: Report name as non-daw when invoked as such, as non-timeline otherwise.
This commit is contained in:
parent
801d1b20fb
commit
a25ea63389
|
@ -17,4 +17,4 @@
|
||||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
|
|
||||||
#define __MODULE__ "non-daw:engine"
|
#define __MODULE__ "non-timeline:engine"
|
||||||
|
|
|
@ -117,8 +117,8 @@ Project::write_info ( void )
|
||||||
else
|
else
|
||||||
strcpy( s, _created_on );
|
strcpy( s, _created_on );
|
||||||
|
|
||||||
fprintf( fp, "created by\n\t%s\ncreated on\n\t%s\nversion\n\t%d\nsample rate\n\t%lu\n",
|
fprintf( fp, "created by\n\t%s %s\ncreated on\n\t%s\nversion\n\t%d\nsample rate\n\t%lu\n",
|
||||||
APP_NAME " " VERSION,
|
APP_NAME, VERSION,
|
||||||
s,
|
s,
|
||||||
PROJECT_VERSION,
|
PROJECT_VERSION,
|
||||||
(unsigned long)timeline->sample_rate() );
|
(unsigned long)timeline->sample_rate() );
|
||||||
|
|
|
@ -17,6 +17,6 @@
|
||||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
|
|
||||||
#define APP_NAME "Non-DAW"
|
extern const char *APP_NAME;
|
||||||
#define APP_TITLE "The Non-DAW"
|
extern const char *APP_TITLE;
|
||||||
#define __MODULE__ "non-daw"
|
#define __MODULE__ "non-timeline"
|
||||||
|
|
|
@ -71,15 +71,15 @@ char *instance_name = NULL;
|
||||||
/* TODO: put these in a header */
|
/* TODO: put these in a header */
|
||||||
#define USER_CONFIG_DIR ".non-daw/"
|
#define USER_CONFIG_DIR ".non-daw/"
|
||||||
|
|
||||||
const char APP_NAME[] = "Non-Timeline";
|
const char *APP_NAME = "Non-Timeline";
|
||||||
const char APP_TITLE[] = "The Non-Timeline";
|
const char *APP_TITLE = "The Non-Timeline";
|
||||||
|
|
||||||
const char COPYRIGHT[] = "Copyright (C) 2008-2013 Jonathan Moore Liles";
|
const char COPYRIGHT[] = "Copyright (C) 2008-2013 Jonathan Moore Liles";
|
||||||
|
|
||||||
const double NSM_CHECK_INTERVAL = 0.25f;
|
const double NSM_CHECK_INTERVAL = 0.25f;
|
||||||
|
|
||||||
#define PACKAGE "non"
|
#define PACKAGE "non"
|
||||||
|
|
||||||
|
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
@ -144,6 +144,12 @@ check_sigterm ( void * )
|
||||||
int
|
int
|
||||||
main ( int argc, char **argv )
|
main ( int argc, char **argv )
|
||||||
{
|
{
|
||||||
|
if ( !strcmp( argv[0], "non-daw" ) )
|
||||||
|
{
|
||||||
|
/* use old app name and title */
|
||||||
|
APP_NAME = "Non-DAW";
|
||||||
|
APP_TITLE = "The Non-DAW";
|
||||||
|
}
|
||||||
|
|
||||||
printf( "%s %s -- %s\n", APP_TITLE, VERSION, COPYRIGHT );
|
printf( "%s %s -- %s\n", APP_TITLE, VERSION, COPYRIGHT );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue