Timeline: Report name as non-daw when invoked as such, as non-timeline otherwise.

This commit is contained in:
Jonathan Moore Liles 2013-03-12 17:45:12 -07:00
parent 801d1b20fb
commit a25ea63389
4 changed files with 15 additions and 9 deletions

View File

@ -17,4 +17,4 @@
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/*******************************************************************************/
#define __MODULE__ "non-daw:engine"
#define __MODULE__ "non-timeline:engine"

View File

@ -117,8 +117,8 @@ Project::write_info ( void )
else
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",
APP_NAME " " VERSION,
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,
s,
PROJECT_VERSION,
(unsigned long)timeline->sample_rate() );

View File

@ -17,6 +17,6 @@
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/*******************************************************************************/
#define APP_NAME "Non-DAW"
#define APP_TITLE "The Non-DAW"
#define __MODULE__ "non-daw"
extern const char *APP_NAME;
extern const char *APP_TITLE;
#define __MODULE__ "non-timeline"

View File

@ -71,15 +71,15 @@ char *instance_name = NULL;
/* TODO: put these in a header */
#define USER_CONFIG_DIR ".non-daw/"
const char APP_NAME[] = "Non-Timeline";
const char APP_TITLE[] = "The Non-Timeline";
const char *APP_NAME = "Non-Timeline";
const char *APP_TITLE = "The Non-Timeline";
const char COPYRIGHT[] = "Copyright (C) 2008-2013 Jonathan Moore Liles";
const double NSM_CHECK_INTERVAL = 0.25f;
#define PACKAGE "non"
#include "const.h"
#include "debug.h"
@ -144,6 +144,12 @@ check_sigterm ( void * )
int
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 );