Skip to content

Commit

Permalink
fix build on Android and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Apr 1, 2020
1 parent 8cdaa01 commit 8c51c33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ struct avocado_config_t {
KeyBindings keys;
} controller[2]{
{
.type = ControllerType::analog,
.keys = DefaultKeyBindings::keyboard_numpad(),
ControllerType::analog,
DefaultKeyBindings::keyboard_numpad(),
},
{
.type = ControllerType::none,
.keys = DefaultKeyBindings::none(),
ControllerType::none,
DefaultKeyBindings::none(),
},
};

Expand Down Expand Up @@ -81,8 +81,8 @@ struct avocado_config_t {
struct {
std::string path;
} memoryCard[2]{
{.path = "data/memory/card1.mcr"}, //
{.path = ""}, //
{"data/memory/card1.mcr"}, //
{""}, //
};

struct {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/windows/gui/helper/file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void FileDialog::getDriveList() {
continue;
}

auto volume = fs::path(components[1]);
auto volume = fs::path(std::string(components[1]));
auto name = volume.filename().string();
if (name.empty()) {
name = "/";
Expand Down

0 comments on commit 8c51c33

Please sign in to comment.