preload.c

skylib_mudos_v1/mudlib/secure/master/preload.c · 589 B

From the archive skylib_mudos_v1.tar.gz

Download the archive   « Back to the archive contents

/*
 * This is all the autoloading stuff.
 * please don't remove again - lynscar.
 */

/** @ignore yes */
protected string *load_file( string file ) {
    if( !file = read_file("/secure/config/"+file ) )
        return ({ });

    return filter( explode( file, "\n"), (: $1[0] != '#' :) );

} /* load_file() */

/** @ignore yes */
string *epilog() { return load_file("preload"); }

/** @ignore yes */
void preload( string file ) {
    mixed err;

    printf("Preloading: "+file+".\n");

    if( err = catch( load_object(file) ) )
        printf("            "+err+"\n");

} /* preload() */

Site Stats

Snippets: 1791
Codebases: 571