Update resource.cpp