fixes
This commit is contained in:
		
							parent
							
								
									5325083b6f
								
							
						
					
					
						commit
						462ece38c7
					
				@ -3,8 +3,6 @@
 | 
			
		||||
#include "misc_functions.h"
 | 
			
		||||
#include "file_functions.h"
 | 
			
		||||
#include "aoapplication.h"
 | 
			
		||||
#include "debug_functions.h"
 | 
			
		||||
#include <string>
 | 
			
		||||
 | 
			
		||||
AOCharMovie::AOCharMovie(QWidget *p_parent, AOApplication *p_ao_app) : QLabel(p_parent)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
@ -342,7 +342,6 @@ QString AOApplication::get_sfx(QString p_identifier)
 | 
			
		||||
 | 
			
		||||
QString AOApplication::get_sfx_suffix(QString sound_to_check)
 | 
			
		||||
{
 | 
			
		||||
    QString wav_check = get_sounds_path() + sound_to_check + ".wav";
 | 
			
		||||
    QString mp3_check = get_sounds_path() + sound_to_check + ".mp3";
 | 
			
		||||
    QString opus_check = get_sounds_path() + sound_to_check + ".opus";
 | 
			
		||||
    if(file_exists(opus_check))
 | 
			
		||||
@ -353,25 +352,16 @@ QString AOApplication::get_sfx_suffix(QString sound_to_check)
 | 
			
		||||
    {
 | 
			
		||||
        return sound_to_check + ".mp3";
 | 
			
		||||
    }
 | 
			
		||||
    if(file_exists(wav_check))
 | 
			
		||||
    {
 | 
			
		||||
        return sound_to_check + ".wav";
 | 
			
		||||
    }
 | 
			
		||||
    return sound_to_check + ".wav";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QString AOApplication::get_image_suffix(QString path_to_check)
 | 
			
		||||
{
 | 
			
		||||
    QString apng_check = path_to_check + ".apng";
 | 
			
		||||
    QString gif_check = path_to_check + ".gif";
 | 
			
		||||
    if(file_exists(apng_check))
 | 
			
		||||
    {
 | 
			
		||||
        return path_to_check + ".apng";
 | 
			
		||||
    }
 | 
			
		||||
    if(file_exists(gif_check))
 | 
			
		||||
    {
 | 
			
		||||
        return path_to_check + ".gif";
 | 
			
		||||
    }
 | 
			
		||||
    return path_to_check + ".gif";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user