server.c

nightmare4_fluffos_v1/lib/domains/Ylsrim/virtual/server.c · 530 B

From the archive nightmare4_fluffos_v1.zip

Download the archive   « Back to the archive contents

/*    /domains/Ylsrim/virtual/server.c
 *    from the Nightmare V Object Library
 *    created by Descartes of Borg 960302
 */

object compile_object(string file) {
    string *path;
    object ob;
    int x, y;
    
    if( previous_object() != master() ) return 0;
    path = explode(file, "/");
    if( sizeof(path) != 5 ) return 0;
    if( file_size(__DIR__ + path[3] + ".c") < 1 ) return 0;
    if( sscanf(path[4], "%d,%d", x, y) != 2 ) return 0;    
    if( !(ob = new(__DIR__ + path[3], x, y)) ) return 0;
    return ob;
}

Site Stats

Snippets: 1791
Codebases: 571