Fix model-cache location. On OSX it was even in ~/Documents/Library/Caches/, wow.

Thanks go to Bradamante for pointing out the issue.
This commit is contained in:
rdb 2010-04-16 10:16:35 +00:00
parent 865beb38f5
commit 7ea3dfbfee
2 changed files with 6 additions and 6 deletions

View File

@ -87,7 +87,7 @@ hardware-animated-vertices #f
# Enable the model-cache, but only for models, not textures. # Enable the model-cache, but only for models, not textures.
model-cache-dir $USER_APPDATA/.panda3d/cache model-cache-dir $HOME/.panda3d/cache
model-cache-textures #f model-cache-textures #f
# This option specifies the default profiles for Cg shaders. # This option specifies the default profiles for Cg shaders.

View File

@ -1705,13 +1705,13 @@ else:
configprc=ReadFile("makepanda/config.in") configprc=ReadFile("makepanda/config.in")
if (sys.platform.startswith("win")): if (sys.platform.startswith("win")):
configprc = configprc.replace(".panda3d","Panda3D-%s" % VERSION) configprc = configprc.replace("$HOME/.panda3d", "$USER_APPDATA/Panda3D-%s" % MAJOR_VERSION)
else: else:
configprc = configprc.replace("aux-display pandadx9", "") configprc = configprc.replace("aux-display pandadx9", "")
configprc = configprc.replace("aux-display pandadx8", "") configprc = configprc.replace("aux-display pandadx8", "")
if (sys.platform == "darwin"): if (sys.platform == "darwin"):
configprc = configprc.replace(".panda3d","Library/Caches/Panda3D-%s" % VERSION) configprc = configprc.replace(".panda3d/cache", "Library/Caches/Panda3D-%s" % MAJOR_VERSION)
# OpenAL is not yet working well on OSX for us, so let's do this for now. # OpenAL is not yet working well on OSX for us, so let's do this for now.
configprc = configprc.replace("p3openal_audio", "p3fmod_audio") configprc = configprc.replace("p3openal_audio", "p3fmod_audio")