Skip to content

Commit

Permalink
Bump version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
SneakySpook committed Oct 31, 2017
1 parent badf899 commit 76744e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
# built documents.
#
# The short X.Y version.
version = u'1.3.1'
version = u'1.6.0'
# The full version, including alpha/beta/rc tags.
release = u'1.3.1'
release = u'1.6.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/rhmodding/tickompiler/Utils.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package rhmodding.tickompiler

const val VERSION: String = "v1.6.0-DEVELOPMENT"
const val VERSION: String = "v1.6.0"
const val GITHUB: String = "https://github.com/SneakySpook/Tickompiler"
const val INFO_TEXT: String = """Tickompiler: A RHM tickflow compiler/decompiler written by SneakySpook and chrislo27 in Kotlin
$VERSION
Expand Down
17 changes: 5 additions & 12 deletions src/main/kotlin/rhmodding/tickompiler/decompiler/Decompiler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,10 @@ class Decompiler(val array: ByteArray, val order: ByteOrder, val functions: Func
anns.forEach {
val anncode = it and 0b11111111
val annArg = (it ushr 8).toInt()
if (anncode == 0L) {
specialArgStrings[annArg] = markers[args[annArg]] ?: args[annArg].toString()
}
if (anncode == 1L) {
specialArgStrings[annArg] = "u\"" + (strings[args[annArg]] ?: "") + '"'
}
if (anncode == 2L) {
specialArgStrings[annArg] = '"' + (strings[args[annArg]] ?: "") + '"'
when(anncode) {
0L -> specialArgStrings[annArg] = markers[args[annArg]] ?: args[annArg].toString()
1L -> specialArgStrings[annArg] = "u\"" + (strings[args[annArg]] ?: "") + '"'
2L -> specialArgStrings[annArg] = '"' + (strings[args[annArg]] ?: "") + '"'
}
}

Expand All @@ -195,10 +191,7 @@ class Decompiler(val array: ByteArray, val order: ByteOrder, val functions: Func
builder.append(tickFlow)
if (addComments == CommentType.BYTECODE) {
fun Int.toLittleEndianHex(): String {
val str = this.toString(16).padStart(8, '0').toUpperCase(Locale.ROOT)

return str
// return str.substring(6, 8) + str.substring(4, 6) + str.substring(2, 4) + str.substring(0, 2)
return toString(16).padStart(8, '0').toUpperCase(Locale.ROOT)
}

builder.append(" // bytecode: ${opint.toInt().toLittleEndianHex()} ${args.joinToString(" "){it.toInt().toLittleEndianHex()}}")
Expand Down

0 comments on commit 76744e4

Please sign in to comment.