Browse Source

Timeline: Fix false-positive incompatibility with old project files.

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
e424182dce
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      timeline/src/Project.C

+ 3
- 2
timeline/src/Project.C View File

@@ -118,7 +118,7 @@ Project::write_info ( void )
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_TITLE " " VERSION,
APP_NAME " " VERSION,
s,
PROJECT_VERSION,
(unsigned long)timeline->sample_rate() );
@@ -283,7 +283,8 @@ Project::open ( const char *name )
if ( ! read_info( &version, &rate, &creation_date, &created_by ) )
return E_INVALID;

if ( strncmp( created_by, APP_TITLE, strlen( APP_TITLE ) ) )
if ( strncmp( created_by, APP_TITLE, strlen( APP_TITLE ) ) &&
strncmp( created_by, APP_NAME, strlen( APP_NAME ) ) )
return E_INVALID;

if ( version != PROJECT_VERSION )


Loading…
Cancel
Save