From a08d08850ef97e7aa1ed245f9f25e164642ac6f0 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 19 Aug 2002 23:31:48 +0000 Subject: [PATCH] Provide access to the source file from which a resource bundle was created. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1652 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/resource/ResourceBundle.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/resource/ResourceBundle.java b/src/java/com/threerings/resource/ResourceBundle.java index 7061ba7c6..0688ec5c7 100644 --- a/src/java/com/threerings/resource/ResourceBundle.java +++ b/src/java/com/threerings/resource/ResourceBundle.java @@ -1,5 +1,5 @@ // -// $Id: ResourceBundle.java,v 1.3 2002/07/19 20:12:23 shaper Exp $ +// $Id: ResourceBundle.java,v 1.4 2002/08/19 23:31:48 mdb Exp $ package com.threerings.resource; @@ -27,6 +27,15 @@ public class ResourceBundle _source = source; } + /** + * Returns the {@link File} from which resources are fetched for this + * bundle. + */ + public File getSource () + { + return _source; + } + /** * Fetches the named resource from this bundle. The path should be * specified as a relative, platform independent path (forward