Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/converter/properties/ByteProperty.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {getStringByteSize} from "../sav-writer.js";
import SavWriter, {getStringByteSize} from "../sav-writer.js";

class ByteProperty {
static SIZE_ONE = [0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
Expand Down Expand Up @@ -40,7 +40,6 @@ class ByteProperty {

// backwards compatibility
toBytes() {
const SavWriter = require("../sav-writer");
const savWriter = new SavWriter(this.getByteSize());
this.write(savWriter);
return savWriter.array;
Expand Down
3 changes: 1 addition & 2 deletions src/converter/properties/Int64Property.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {getStringByteSize} from "../sav-writer.js";
import SavWriter, {getStringByteSize} from "../sav-writer.js";

class Int64Property {
static SIZE_EIGHT = [0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
Expand Down Expand Up @@ -35,7 +35,6 @@ class Int64Property {

// backwards compatibility
toBytes() {
const SavWriter = require("../sav-writer");
const savWriter = new SavWriter(this.getByteSize());
this.write(savWriter);
return savWriter.array;
Expand Down