Add additional version to project info.

This commit is contained in:
Jonathan Moore Liles 2008-05-06 23:42:06 -05:00
parent 9ed5394e5d
commit a81b174b90
1 changed files with 7 additions and 1 deletions

View File

@ -33,8 +33,11 @@ project state belongs to Timeline and other classes. */
#include "Timeline.H" // for sample_rate(); #include "Timeline.H" // for sample_rate();
/* FIXME: wrong place for this */
#define APP_TITLE "Non-DAW" #define APP_TITLE "Non-DAW"
#define PROJECT_VERSION "0.28.0"
#include "debug.h" #include "debug.h"
char Project::_name[256]; char Project::_name[256];
bool Project::_is_open = false; bool Project::_is_open = false;
@ -86,7 +89,10 @@ Project::write_info ( void )
return false; return false;
} }
fprintf( fp, "version\n\t%s\nsample rate\n\t%lu\n", APP_TITLE " " VERSION, timeline->sample_rate() ); fprintf( fp, "created by\n\t%s\nversion\n\t%s\nsample rate\n\t%lu\n",
APP_TITLE " " VERSION,
PROJECT_VERSION,
timeline->sample_rate() );
fclose( fp ); fclose( fp );