Skip to content

Commit

Permalink
Use mp3 with PSP version
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Jul 10, 2023
1 parent 076ec5d commit 8d40e34
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ set(ASSETS_BACKGROUNDS "${CMAKE_SOURCE_DIR}/assets/backgrounds")

if(PSP)
set(ASSETS_BACKGROUNDS "${CMAKE_CURRENT_SOURCE_DIR}/platform/psp/assets/backgrounds")
set(ASSETS_MUSIC "${CMAKE_CURRENT_SOURCE_DIR}/platform/psp/assets/music")
elseif(VITA)
set(ASSETS_BACKGROUNDS "${CMAKE_SOURCE_DIR}/platform/vita/assets/backgrounds")
endif()
Expand Down
Binary file removed platform/psp/assets/music/song1.ogg
Binary file not shown.
Binary file removed platform/psp/assets/music/song2.ogg
Binary file not shown.
Binary file removed platform/psp/assets/music/song3.ogg
Binary file not shown.
Binary file removed platform/psp/assets/music/song4.ogg
Binary file not shown.
8 changes: 2 additions & 6 deletions src/ThemeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ void ThemeManager::loadMusic(Theme theme) {

this->music_theme = theme;

#ifdef __PSP__
std::string music_file_type = "ogg";
#else
std::string music_file_type = "mp3";
#endif
std::string music_file_type = "mp3";

switch (this->music_theme) {
case Theme::THEME1:
Expand Down Expand Up @@ -193,4 +189,4 @@ SDL_Texture * ThemeManager::createBackgroundTexture(std::string filename) {
}

return texture;
}
}

0 comments on commit 8d40e34

Please sign in to comment.