Browse Source

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

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
a25ea63389
4 changed files with 15 additions and 9 deletions
  1. +1
    -1
      timeline/src/Engine/const.h
  2. +2
    -2
      timeline/src/Project.C
  3. +3
    -3
      timeline/src/const.h
  4. +9
    -3
      timeline/src/main.C

+ 1
- 1
timeline/src/Engine/const.h 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"

+ 2
- 2
timeline/src/Project.C 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() );


+ 3
- 3
timeline/src/const.h 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"

+ 9
- 3
timeline/src/main.C 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 );



Loading…
Cancel
Save