don't look in music for URLs
This commit is contained in:
		
							parent
							
								
									558fa55be8
								
							
						
					
					
						commit
						1b5c1ebb04
					
				@ -99,7 +99,11 @@ QString AOApplication::get_music_path(QString p_song)
 | 
			
		||||
  QString withending_check = get_base_path() + "sounds/music/" + p_song;
 | 
			
		||||
  QString mp3_check = get_base_path() + "sounds/music/" + p_song + ".mp3";
 | 
			
		||||
  QString opus_check = get_base_path() + "sounds/music/" + p_song + ".opus";
 | 
			
		||||
  if (file_exists(opus_check))
 | 
			
		||||
  if (p_song.startsWith("http")) {
 | 
			
		||||
      //it's an URL
 | 
			
		||||
      return p_song;
 | 
			
		||||
  }
 | 
			
		||||
  else if (file_exists(opus_check))
 | 
			
		||||
  {
 | 
			
		||||
    #ifndef CASE_SENSITIVE_FILESYSTEM
 | 
			
		||||
      return opus_check;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user