mirror of https://github.com/rusefi/RomRaider.git
Fixed signed integer being overwritten.
git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@306 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
parent
06d1044f21
commit
6700270abb
|
@ -56,17 +56,19 @@ This is the seventh beta release of the upcoming official 0.5.3b release.
|
|||
- Change Log -
|
||||
--------------
|
||||
|
||||
0.5.3b RC7 (12/11/2010)
|
||||
0.5.3b RC7 (12/21/2010)
|
||||
-----------------------
|
||||
|
||||
--- Editor ---
|
||||
- Fixed Compare map scroll list
|
||||
- Added support for sign integer data (used in diesel ROMs)
|
||||
|
||||
--- Logger ---
|
||||
- Improved serial connection handling
|
||||
- MRF Stealth Gauge support added
|
||||
- Fixed Compare map scroll list
|
||||
- Added saving parameter list show/hide to settings
|
||||
- Added USER input read ability for ZT2
|
||||
- Added check box to enable/disable COM port refreshing and save the setting
|
||||
- Added support for sign integer data (used in diesel ROMs)
|
||||
|
||||
0.5.3b RC6 (05/02/2009)
|
||||
-----------------------
|
||||
|
|
|
@ -129,13 +129,6 @@ public class DataCell extends JLabel implements MouseListener, Serializable {
|
|||
if (table.isSignedData()) {
|
||||
int minAllowedValue = 0;
|
||||
int maxAllowedValue = 0;
|
||||
// int typeStroageLimit = (int) (Math.pow(128, table.getStorageType()) * (Math.pow(2, table.getStorageType())/2));
|
||||
// if (binValue < typeStroageLimit *-1 ) {
|
||||
// this.setBinValue(typeStroageLimit *-1);
|
||||
// }
|
||||
// else if (binValue > (typeStroageLimit - 1)) {
|
||||
// this.setBinValue(typeStroageLimit - 1);
|
||||
// }
|
||||
switch (table.getStorageType()) {
|
||||
case 1:
|
||||
minAllowedValue = Byte.MIN_VALUE;
|
||||
|
|
|
@ -205,7 +205,7 @@ public class TablePropertyPanel extends javax.swing.JPanel {
|
|||
endian.setText("little");
|
||||
endian.setFocusable(false);
|
||||
|
||||
storageSize.setText("uint16");
|
||||
storageSize.setText("unkn");
|
||||
storageSize.setFocusable(false);
|
||||
|
||||
storageAddress.setText("0x00");
|
||||
|
|
|
@ -380,8 +380,10 @@ public final class DOMRomUnmarshaller {
|
|||
}
|
||||
|
||||
table.setCategory(unmarshallAttribute(tableNode, "category", table.getCategory()));
|
||||
if (table.getStorageType() < 1) {
|
||||
table.setSignedData(RomAttributeParser.parseStorageDataSign(unmarshallAttribute(tableNode, "storagetype", String.valueOf(table.getStorageType()))));
|
||||
}
|
||||
table.setStorageType(RomAttributeParser.parseStorageType(unmarshallAttribute(tableNode, "storagetype", String.valueOf(table.getStorageType()))));
|
||||
table.setSignedData(RomAttributeParser.parseStorageDataSign(unmarshallAttribute(tableNode, "storagetype", String.valueOf(table.getStorageType()))));
|
||||
table.setEndian(RomAttributeParser.parseEndian(unmarshallAttribute(tableNode, "endian", String.valueOf(table.getEndian()))));
|
||||
table.setStorageAddress(RomAttributeParser.parseHexString(unmarshallAttribute(tableNode, "storageaddress", String.valueOf(table.getStorageAddress()))));
|
||||
table.setDescription(unmarshallAttribute(tableNode, "description", table.getDescription()));
|
||||
|
|
Loading…
Reference in New Issue