Changeset fbcf983


Ignore:
Timestamp:
Aug 14, 2010, 7:14:34 PM (7 years ago)
Author:
Michael Seifert <mseifert@…>
Branches:
master
Children:
b4e4dd3
Parents:
7c832f6
Message:

sc2replay:
Support for version 3 replay actions seems to be complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sc2replay/src/main/java/de/erichseifert/warp/sc2replay/actions/SC2ActionFactory_v3.java

    r7c832f6 rfbcf983  
    4040        private static final byte CODE_UNKNOWN4 = (byte) 0x87;
    4141        private static final byte CODE_UNKNOWN5 = 0x07;
     42        private static final byte CODE_UNKNOWN6 = 0x08;
    4243        private static final byte CODE_SELECT = (byte) 0xAC;
    4344        private static final byte CODE_LEAVE_GAME = 0x09;
     
    107108                        action = new Unknown(timeStamp);
    108109                        src.position(src.position()+4);
     110                        //System.out.println("Request resources action: offset="+pos+", length="+(src.position()-pos)+" bytes");
     111                }
     112                else if (code == CODE_UNKNOWN6) {
     113                        action = new Unknown(timeStamp);
     114                        int flagByte = src.get();
     115                        int length = ((flagByte & 0x0F) << 3) + 1;
     116                        src.position(src.position()+length);
    109117                        //System.out.println("Request resources action: offset="+pos+", length="+(src.position()-pos)+" bytes");
    110118                }
Note: See TracChangeset for help on using the changeset viewer.