diff --git a/mia/medium/game-boy-color.cpp b/mia/medium/game-boy-color.cpp index 59a728730..85882983d 100644 --- a/mia/medium/game-boy-color.cpp +++ b/mia/medium/game-boy-color.cpp @@ -1,4 +1,5 @@ struct GameBoyColor : GameBoy { auto name() -> string override { return "Game Boy Color"; } + auto saveName() -> string override { return "Game Boy"; } auto extensions() -> vector override { return {"gb", "gbc"}; } }; diff --git a/mia/pak/pak.cpp b/mia/pak/pak.cpp index d2d322078..af988f365 100644 --- a/mia/pak/pak.cpp +++ b/mia/pak/pak.cpp @@ -149,7 +149,7 @@ auto Pak::saveLocation(string location, string name, string extension) -> string string saveLocation; if(auto path = mia::saveLocation()) { //if the user has chosen a specific location to save files to ... - saveLocation = {path, this->name(), "/", Location::prefix(location), extension}; + saveLocation = {path, this->saveName(), "/", Location::prefix(location), extension}; } else if(directory::exists(location)) { //if this is a pak ... saveLocation = {location, name}; diff --git a/mia/pak/pak.hpp b/mia/pak/pak.hpp index eb5e79fab..1fee815b4 100644 --- a/mia/pak/pak.hpp +++ b/mia/pak/pak.hpp @@ -4,6 +4,7 @@ struct Pak { virtual ~Pak() = default; virtual auto type() -> string { return pak->attribute("type"); } virtual auto name() -> string { return pak->attribute("name"); } + virtual auto saveName() -> string { return pak->attribute("name"); } virtual auto extensions() -> vector { return {}; } virtual auto load(string location = {}) -> LoadResult { return successful; } virtual auto loadMultiple(vector location = {}) -> bool { return true; }