From d04e068d9bc334033caad23853fa650f9bffecc1 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 30 Nov 2004 20:06:36 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/micasa/lobby/LobbyConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/micasa/lobby/LobbyConfig.java b/src/java/com/threerings/micasa/lobby/LobbyConfig.java index dc05314f5..111c779f1 100644 --- a/src/java/com/threerings/micasa/lobby/LobbyConfig.java +++ b/src/java/com/threerings/micasa/lobby/LobbyConfig.java @@ -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 // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved @@ -64,7 +64,7 @@ public class LobbyConfig extends PlaceConfig public GameConfig getGameConfig () throws Exception { - return (GameConfig)Class.forName(_gameConfigClass).newInstance(); + return (GameConfig)_loader.loadClass(_gameConfigClass).newInstance(); } /**