Update Resource.cpp