Update ResourceManager.cpp