Skip to content

Commit

Permalink
[xdg] mime.thumbnail.types: Add CDI MIME types.
Browse files Browse the repository at this point in the history
shared-mime-info uses application/x-discjuggler-cd-image,
while KDE seems to use application/x-cdi.

[libromdata] Dreamcast: Add application/x-discjuggler-cd-image and
use it as the MIME type for CDI images.
  • Loading branch information
GerbilSoft committed Oct 12, 2024
1 parent dd612a4 commit d5c448d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libromdata/Console/Dreamcast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const char *const DreamcastPrivate::mimeTypes[] = {
// TODO: Get the above types upstreamed and get rid of this.
"application/x-dreamcast-rom",
"application/x-gd-rom-cue",
"application/x-discjuggler-cd-image",

nullptr
};
Expand Down Expand Up @@ -404,7 +405,7 @@ Dreamcast::Dreamcast(const IRpFilePtr &file)
mimeType = "application/x-gd-rom-cue";
} else /*if (d->discType == DreamcastPrivate::DiscType::CDI)*/ {
d->discReader = std::make_shared<CdiReader>(d->file);
mimeType = "application/x-cdi";
mimeType = "application/x-discjuggler-cd-image";
}

MultiTrackSparseDiscReader *const mtsDiscReader = static_cast<MultiTrackSparseDiscReader*>(d->discReader.get());
Expand Down
2 changes: 2 additions & 0 deletions xdg/mime.thumbnail.types
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ application/x-cbm2-cartridge # CBMCart
application/x-vic20-cartridge # CBMCart
application/x-plus4-cartridge # CBMCart
application/pkix-cert # CBMCart (NOTE: Workaround; .crt is detected as this)
application/x-cdi # Dreamcast
application/x-discjuggler-cd-image # Dreamcast
application/x-dreamcast-rom # Dreamcast
application/x-dreamcast-iso-image # Dreamcast
application/x-dc-rom # Dreamcast
Expand Down

0 comments on commit d5c448d

Please sign in to comment.