diff --git a/documentation/fm2.txt b/documentation/fm2.txt index 7fe1cbfd..ea73e134 100644 --- a/documentation/fm2.txt +++ b/documentation/fm2.txt @@ -46,7 +46,7 @@ MOVIECMD_RESET = 1 the format of port0, port1, port2 depends on which types of devices were attached. SI_GAMEPAD: the field consists of eight characters which constitute a bitfield. - any non-space character means that the button was pressed. + any character other than ' ' or '.' means that the button was pressed. by convention, the following mnemonics will be used in a column to remind us of which button corresponds to which column: ABSTUDLR (A,B,Select,sTart,Up,Down,Left,Right) SI_ZAPPER: @@ -71,4 +71,8 @@ The input types must all be gamepads, and the inputlog will be in the following |c|ABSTUDLR|ABSTUDLR|ABSTUDLR|ABSTUDLR|port2| If a fourscore is not used, then port0 and port1 are required. -D. The author of this format is curious about what people think of it. Please let him know! \ No newline at end of file +D. The emulator uses these framerate constants + - NTSC: 1008307711 /256/65536 = 60.099822938442230224609375 + - PAL : 838977920 /256/65536 = 50.00698089599609375 + +E. The author of this format is curious about what people think of it. Please let him know! \ No newline at end of file diff --git a/src/movie.cpp b/src/movie.cpp index 649e5d08..31e7fe3d 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -124,7 +124,7 @@ void MovieRecord::dumpJoy(std::ostream* os, uint8 joystate) { //these are mnemonics for each joystick bit. //since we usually use the regular joypad, these will be more helpful. - //but any character other than ' ' should count as a set bit + //but any character other than ' ' or '.' should count as a set bit //maybe other input types will need to be encoded another way.. for(int bit=7;bit>=0;bit--) { @@ -133,8 +133,8 @@ void MovieRecord::dumpJoy(std::ostream* os, uint8 joystate) //if the bit is set write the mnemonic if(joystate & bitmask) os->put(mnemonic); - else //otherwise write a space - os->put(' '); + else //otherwise write an unset bit + os->put('.'); } } @@ -146,7 +146,7 @@ void MovieRecord::parseJoy(std::istream* is, uint8& joystate) for(int i=0;i<8;i++) { joystate <<= 1; - joystate |= ((buf[i]!=' ')?1:0); + joystate |= ((buf[i]=='.'||buf[i]==' ')?0:1); } } diff --git a/vc8/fceux.vcproj b/vc8/fceux.vcproj index 6a555715..8738cf97 100644 --- a/vc8/fceux.vcproj +++ b/vc8/fceux.vcproj @@ -181,7 +181,7 @@ />