Skip to content

Commit

Permalink
fix song paths issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NarrikSynthfox committed May 2, 2024
1 parent fd2c764 commit a6c0e61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Encore/include/game/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@ class Settings {
mirrorMember->value.SetBool(mirrorMode);
rapidjson::Value::MemberIterator songDirMember = settings.FindMember("songDirectories");
songDirMember->value.Clear();
for (filesystem::path &path: songPaths)
songDirMember->value.PushBack(rapidjson::Value().SetString((const char*)(path.c_str()), allocator), allocator);
for (filesystem::path& path : songPaths)
songDirMember->value.PushBack(rapidjson::Value().SetString(path.string(), allocator), allocator);
rapidjson::Value::MemberIterator keybinds4KMember = settings["keybinds"].FindMember("4k");
keybinds4KMember->value.Clear();
for (int& key : keybinds4K)
Expand Down
2 changes: 1 addition & 1 deletion Encore/include/rapidjson/rapidjson.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#ifndef RAPIDJSON_RAPIDJSON_H_
#define RAPIDJSON_RAPIDJSON_H_

#define RAPIDJSON_HAS_STDSTRING 1
/*!\file rapidjson.h
\brief common definitions and configuration
Expand Down
4 changes: 2 additions & 2 deletions Encore/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ int main(int argc, char* argv[])
curBPM = 0;
instrument = 0;
diff = 0;
int randSong = rand()%(songList.songCount-0+1)+0;
static int randSong = rand()%songList.songCount;
int selectedSongInt = curPlayingSong;
Song selectedSong = songList.songs[selectedSongInt];

Expand Down Expand Up @@ -1165,7 +1165,7 @@ int main(int argc, char* argv[])
}
}
DrawBottomBottomOvershell();
break
break;
}
case INSTRUMENT_SELECT: {
selSong = false;
Expand Down

0 comments on commit a6c0e61

Please sign in to comment.