mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 08:34:25 +02:00
Tidied up the place method
git-svn-id: https://smali.googlecode.com/svn/trunk@199 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
b1a620218e
commit
64a2d18b6f
@ -194,7 +194,8 @@ public class DexFile
|
|||||||
public void place() {
|
public void place() {
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
|
||||||
offset = 0x70;
|
offset = HeaderItemSection.place(offset);
|
||||||
|
|
||||||
for (IndexedSection indexedSection: indexedSections) {
|
for (IndexedSection indexedSection: indexedSections) {
|
||||||
indexedSection.unplace();
|
indexedSection.unplace();
|
||||||
offset = indexedSection.place(offset);
|
offset = indexedSection.place(offset);
|
||||||
@ -208,11 +209,6 @@ public class DexFile
|
|||||||
offset = offsettedSection.place(offset);
|
offset = offsettedSection.place(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
HeaderItemSection.place(0);
|
|
||||||
|
|
||||||
if (offset % 4 != 0) {
|
|
||||||
offset += (4 - (offset % 4));
|
|
||||||
}
|
|
||||||
offset = MapSection.place(offset);
|
offset = MapSection.place(offset);
|
||||||
|
|
||||||
dataSize = offset - dataOffset;
|
dataSize = offset - dataOffset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user