diff --git a/backend/src/main.py b/backend/src/main.py
index 787430477..ea63a005a 100644
--- a/backend/src/main.py
+++ b/backend/src/main.py
@@ -42,11 +42,11 @@ async def updateRom(req: Request, p_slug: str, filename: str):
@app.delete("/platforms/{p_slug}/roms/{filename}")
-async def delete_rom(p_slug: str, filename: str):
+async def delete_rom(p_slug: str, filename: str, filesystem: bool=False):
"""Detele rom from filesystem and database"""
log.info("deleting rom...")
- fs.delete_rom(p_slug, filename)
+ if filesystem: fs.delete_rom(p_slug, filename)
dbh.delete_rom(p_slug, filename)
return {'msg': 'success'}
diff --git a/changelog.md b/changelog.md
index b286c4407..9f9fd6001 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,11 @@
+# v1.4 (_29-03-2023_)
+
+## Added
+ - Gamecube support (https://github.com/zurdi15/romm#platforms-support)
+
+## Changed
+ - Now delete game only deletes it from RomM gallery. To delete it from the filesystem too you need to allow it with the checkbox.
+
# v1.3 (_29-03-2023_)
## Fixed
diff --git a/frontend/assets/platforms/ngc.png b/frontend/assets/platforms/ngc.png
new file mode 100644
index 000000000..9c7ed84c4
Binary files /dev/null and b/frontend/assets/platforms/ngc.png differ
diff --git a/frontend/src/components/RomDetails.vue b/frontend/src/components/RomDetails.vue
index bee13f491..d7d4d68b9 100644
--- a/frontend/src/components/RomDetails.vue
+++ b/frontend/src/components/RomDetails.vue
@@ -14,6 +14,7 @@ const romNewName = ref(rom.value.filename)
const dialogSearchRom = ref(false)
const dialogEditRom = ref(false)
const dialogDeleteRom = ref(false)
+const deleteFromFs = ref(false)
const router = useRouter()
// Event listeners bus
@@ -84,7 +85,7 @@ async function editRom() {
async function deleteRom() {
console.log('deleting rom '+ rom.value.filename)
- await axios.delete('/api/platforms/'+rom.value.p_slug+'/roms/'+rom.value.filename)
+ await axios.delete('/api/platforms/'+rom.value.p_slug+'/roms/'+rom.value.filename+'?filesystem='+deleteFromFs.value)
.then((response) => {
console.log(response)
emitter.emit('snackbarScan', {'msg': rom.value.filename+" deleted successfully!", 'icon': 'mdi-check-bold', 'color': 'green'})
@@ -189,8 +190,6 @@ async function deleteRom() {
-
-
@@ -249,12 +248,15 @@ async function deleteRom() {
mdi-close
-
This action can't be reversed. Do you confirm?
+
Deleting from RomM. Do you confirm?
-
+ ConfirmCancel
+
+
+
diff --git a/readme.md b/readme.md
index 688d833a0..cb2ebb354 100644
--- a/readme.md
+++ b/readme.md
@@ -114,6 +114,7 @@ This will change over the time, adding games metadata for more platforms. Make s
| neocd | neocd | ❌ |
| neogeo | neogeo | ❌ |
| nes | Nintendo Entertainment System | ✅ |
+| ngc | Nintendo GameCube | ✅ |
| ngp | ngp | ❌ |
| odyssey | odyssey | ❌ |
| pce | pce | ❌ |
@@ -139,3 +140,7 @@ This will change over the time, adding games metadata for more platforms. Make s
## 🧾 References
* Complete [changelog](https://github.com/zurdi15/romm/blob/master/CHANGELOG.md)
+
+## Credits
+
+* Pc icon support - Keyboard and mouse icons created by Flat Icons - Flaticon