<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generateProjectFiles(self, dir=os.getcwd(), args=[]):
 		""" 		Generates IDE project files for the Unreal project in the specified directory 		"""

		
		# If the project is a pure Blueprint project, then we cannot generate project files
		if os.path.exists(os.path.join(dir, 'Source')) == False:
			Utility.printStderr('Pure Blueprint project, nothing to generate project files for.')
			return
		
		# Generate the project files
		genScript = self.getGenerateScript()
		projectFile = self.getProjectDescriptor(dir)
		Utility.run([genScript, '-project=' + projectFile, '-game', '-engine'] + args, cwd=os.path.dirname(genScript), raiseOnError=True)