Use the custom class loader, though the way MiCasa works, the custom class
loader approach can't work. But it's useful to set a proper example. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3256 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: LobbyConfig.java,v 1.8 2004/08/27 02:12:50 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -64,7 +64,7 @@ public class LobbyConfig extends PlaceConfig
|
|||||||
public GameConfig getGameConfig ()
|
public GameConfig getGameConfig ()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
return (GameConfig)Class.forName(_gameConfigClass).newInstance();
|
return (GameConfig)_loader.loadClass(_gameConfigClass).newInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user