summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/studio2.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-07-31 15:06:06 -0400
committer Nathan Woods <npwoods@mess.org>2016-07-31 15:06:06 -0400
commita4f24a24d3ed131d75b407a96a44b7d7c5d68b65 (patch)
tree02784b2b06cfe2c05d3a6ac9e5dcfe5dbb6f6ffd /src/mame/drivers/studio2.cpp
parenta0ce6c3b37050c1a765ae13babb109c729153989 (diff)
This changes device_image_interface::filetype() to return 'const std::string &' instead of 'const char *'.
In the interests of removing burdens from client code, I also changed the following: - filetype() will always return the file extension in lower case - device_image_interface::filetype() will return the correct extension for files loaded as a part of softlists - The code for extracting a file extension is now encapsulated in core_filename_extract_extension() Client code has been updated
Diffstat (limited to 'src/mame/drivers/studio2.cpp')
-rw-r--r--src/mame/drivers/studio2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/studio2.cpp b/src/mame/drivers/studio2.cpp
index 1f620756308..d03f2dde54b 100644
--- a/src/mame/drivers/studio2.cpp
+++ b/src/mame/drivers/studio2.cpp
@@ -535,7 +535,7 @@ DEVICE_IMAGE_LOAD_MEMBER( studio2_state, studio2_cart_load )
if (image.software_entry() == nullptr)
{
- if (!strcmp(image.filetype(), "st2"))
+ if (image.filetype() == "st2")
{
UINT8 header[0x100];
UINT8 catalogue[10], title[32], pages[64];