Skip to content

Commit

Permalink
Fix animate module for linux system-wide installs
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelson committed Feb 26, 2016
1 parent 89bbd60 commit 49147e8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions config/modules/animate.nut
Original file line number Diff line number Diff line change
Expand Up @@ -726,18 +726,16 @@ fe.add_transition_callback(animation, "transition_callback" );
fe.add_ticks_callback(animation, "ticks_callback" );

//load any animations in the animations folder
local path = FeConfigDirectory + "modules/animate";
local dir = DirectoryListing( path );
local path = fe.module_dir + "animate/";
local dir = DirectoryListing( path, false );
foreach ( f in dir.results )
{
try
{
local name = f.slice( path.len() + 1, f.len() );
local ext = f.slice( f.len() - 4 );
if ( ext == ".nut" )
if ( f.slice( f.len() - 4 ) == ".nut" )
{
if ( DEBUG_ANIMATION ) print( "Loading animation: " + name + "\n" );
fe.load_module( "animate/" + name );
if ( DEBUG_ANIMATION ) print( "Loading animation: " + f + "\n" );
fe.load_module( "animate/" + f );
}
}catch ( e )
{
Expand Down

0 comments on commit 49147e8

Please sign in to comment.