From b600ff2aa544739749549f2cef95982c78287e64 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 17 Jul 2006 17:12:33 +0000 Subject: [PATCH] fix comment --- panda/src/putil/load_prc_file.cxx | 8 ++++++-- panda/src/putil/load_prc_file.h | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/panda/src/putil/load_prc_file.cxx b/panda/src/putil/load_prc_file.cxx index 5601e85bc4..ccba2483c9 100644 --- a/panda/src/putil/load_prc_file.cxx +++ b/panda/src/putil/load_prc_file.cxx @@ -29,8 +29,8 @@ // Description: A convenience function for loading explicit prc files // from a disk file or from within a multifile (via the // virtual file system). Save the return value and pass -// it to unload_prc_file() if you ever want to load this -// file later. +// it to unload_prc_file() if you ever want to unload +// this file later. // // The filename is first searched along the default prc // search path, and then also along the model path, for @@ -116,6 +116,10 @@ load_prc_file_data(const string &name, const string &data) { // prc file that was previously loaded by // load_prc_file(). Returns true if successful, false // if the file was unknown. +// +// After this function has been called, the ConfigPage +// pointer is no longer valid and should not be used +// again. //////////////////////////////////////////////////////////////////// bool unload_prc_file(ConfigPage *page) { diff --git a/panda/src/putil/load_prc_file.h b/panda/src/putil/load_prc_file.h index f41e117d5b..36dc98901f 100644 --- a/panda/src/putil/load_prc_file.h +++ b/panda/src/putil/load_prc_file.h @@ -30,8 +30,8 @@ BEGIN_PUBLISH // Description: A convenience function for loading explicit prc files // from a disk file or from within a multifile (via the // virtual file system). Save the return value and pass -// it to unload_prc_file() if you ever want to load this -// file later. +// it to unload_prc_file() if you ever want to unload +// this file later. // // The filename is first searched along the default prc // search path, and then also along the model path, for @@ -67,6 +67,10 @@ load_prc_file_data(const string &name, const string &data); // prc file that was previously loaded by // load_prc_file(). Returns true if successful, false // if the file was unknown. +// +// After this function has been called, the ConfigPage +// pointer is no longer valid and should not be used +// again. //////////////////////////////////////////////////////////////////// EXPCL_PANDA bool unload_prc_file(ConfigPage *page);