Made shared memory or shared files implementation a compile flag, fixed various compile warnings.
This commit is contained in:
		
							parent
							
								
									6d41cb96d5
								
							
						
					
					
						commit
						6a61b3be08
					
				
					 11 changed files with 102 additions and 139 deletions
				
			
		| 
						 | 
				
			
			@ -993,7 +993,7 @@ bool DTSC::File::seek_time(unsigned int ms, unsigned int trackNo, bool forceSeek
 | 
			
		|||
    }
 | 
			
		||||
    //check if packetID matches, if not, skip size + 8 bytes.
 | 
			
		||||
    int packSize = ntohl(((int *)header)[1]);
 | 
			
		||||
    int packID = ntohl(((int *)header)[2]);
 | 
			
		||||
    unsigned int packID = ntohl(((int *)header)[2]);
 | 
			
		||||
    if (memcmp(header, Magic_Packet2, 4) != 0 || packID != trackNo) {
 | 
			
		||||
      if (memcmp(header, "DT", 2) != 0) {
 | 
			
		||||
        DEBUG_MSG(DLVL_WARN, "Invalid header during seek to %u in track %d @ %lld - resetting bytePos from %lld to zero", ms, trackNo, lastreadpos, tmpPos.bytePos);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue