Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Nov 16, 2012
1 parent 08547f2 commit 9ee12fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doomsday/engine/src/def_read.cpp
Expand Up @@ -812,9 +812,7 @@ static int DED_ReadData(ded_t* ded, const char* buffer, const char* _sourceFile)
READSTR(label);
CHECKSC;

String modelPath = NativePath(label).withSeparators('/') / "/"; // Ensure it has a terminating separator.
de::Uri newSearchPath = de::Uri(modelPath, RC_NULL);

de::Uri newSearchPath = de::Uri::fromNativePathDir(NativePath(label));
ResourceNamespace* rnamespace = F_ResourceNamespaceByName(F_ResourceClassByName("RC_MODEL").defaultNamespace());
DENG_ASSERT(rnamespace);
rnamespace->addSearchPath(ResourceNamespace::ExtraPaths, reinterpret_cast<de::Uri const&>(newSearchPath), 0);
Expand Down

0 comments on commit 9ee12fc

Please sign in to comment.