diff --git a/README.md b/README.md
index a34c433..58d024e 100644
--- a/README.md
+++ b/README.md
@@ -46,10 +46,6 @@ There is also a nice .deb file available on the [Releases](https://github.com/rr
Check out the [Releases](https://github.com/rrooij/sd3save_editor/releases) page. It will contain a Windows
binary.
-# Limitations
-
-Only the first save entry is editable.
-
# Warning
Backup your save before messing with it!
diff --git a/sd3save_editor/gui/mainwindow.py b/sd3save_editor/gui/mainwindow.py
index f7dddb1..2bb7b61 100644
--- a/sd3save_editor/gui/mainwindow.py
+++ b/sd3save_editor/gui/mainwindow.py
@@ -97,7 +97,7 @@ def initFileOpenEvents(self):
def setTableData(self):
self.ui.storageTableWidget.blockSignals(True)
- items = save.read_all_storage_items_amount(self.saveData)
+ items = save.read_all_storage_items_amount(self.saveData, self.saveIndex)
self.ui.storageTableWidget.setRowCount(len(items))
for idx, item in enumerate(items):
itemNameWidget = QTableWidgetItem(item[0])
@@ -117,6 +117,20 @@ def initChangeNameInput(self):
self.ui.c2NameLineEdit.setMaxLength(6)
self.ui.c3NameLineEdit.setMaxLength(6)
+ def initSaveEntryComboBox(self):
+ self.ui.saveIndexComboBox.clear()
+ for x in range(0, 3):
+ if self.saveData[x]:
+ self.ui.saveIndexComboBox.addItem("Save entry {}".format(x + 1), x)
+
+ self.ui.saveIndexComboBox.activated.connect(self.saveEntryChanged)
+
+ def saveEntryChanged(self, index):
+ saveIndex = self.ui.saveIndexComboBox.itemData(index)
+ self.saveIndex = saveIndex
+ self.initData()
+ self.setTableData()
+
def initComboBox(self):
self.ui.locationComboBox.addItems(game_data.parse_locations_json())
self.ui.tracksComboBox.addItems(game_data.parse_tracks_json())
@@ -133,7 +147,8 @@ def saveFormValues(self):
try:
self.saveGuiData()
save.write_storage_item_amounts(self.saveData,
- self.editedStorageItems)
+ self.editedStorageItems,
+ self.saveIndex)
save.write_save(self.filename, self.saveData)
QMessageBox.information(self, "Succesfully saved",
"Succesfully saved")
@@ -157,5 +172,6 @@ def openFileDialog(self):
self.initData()
self.setTableData()
self.initSaveEvent()
+ self.initSaveEntryComboBox()
except Exception as ex:
QMessageBox.warning(self, "Can't open Seiken3 save", str(ex))
diff --git a/sd3save_editor/gui/mainwindow.ui b/sd3save_editor/gui/mainwindow.ui
index d1a7153..1d1ab71 100644
--- a/sd3save_editor/gui/mainwindow.ui
+++ b/sd3save_editor/gui/mainwindow.ui
@@ -15,7 +15,7 @@
- -
+
-
0
@@ -25,53 +25,53 @@
General
-
-
+
-
QFormLayout::AllNonFixedFieldsGrow
-
-
+
-
Location
- -
+
-
- -
+
-
Luc
- -
+
-
677215
- -
+
-
Playing track
- -
+
-
- -
+
-
Playing time
- -
+
-
seconds
@@ -354,7 +354,7 @@
- -
+
-
false
@@ -364,6 +364,20 @@
+ -
+
+
-
+
+
+ Save Entry
+
+
+
+ -
+
+
+
+