forked from distok/cutthecord
		
	patchport: don't warn when skipping instructional patches
This commit is contained in:
		
							parent
							
								
									cbc72c4155
								
							
						
					
					
						commit
						46ac15a055
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -63,6 +63,8 @@ for patch in os.listdir(os.path.join(cutthecord_folder, "patches")):
 | 
			
		|||
 | 
			
		||||
    # Check if patch exists for from_version, if it doesn't, warn user
 | 
			
		||||
    if not os.path.isfile(patch_path):
 | 
			
		||||
        # Don't warn on instructional patches
 | 
			
		||||
        if patch not in ["customfont", "customring"]:
 | 
			
		||||
            print(f"SKIPPED: No {from_versionname} version found for {patch}.")
 | 
			
		||||
        continue
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -118,4 +120,4 @@ else:
 | 
			
		|||
        f.write(ctcr_text)
 | 
			
		||||
 | 
			
		||||
    print("Port complete. All patches completed successfully. "
 | 
			
		||||
          "README was updated.")
 | 
			
		||||
          "README.md was updated.")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue