Skip to content

Commit

Permalink
FIX: Temporarily disabling last song saving
Browse files Browse the repository at this point in the history
  • Loading branch information
afska committed Jun 28, 2020
1 parent a7f6bfd commit 59d94d4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/scenes/SelectionScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ void SelectionScene::load() {
difficulty = std::unique_ptr<Difficulty>{new Difficulty()};
progress = std::unique_ptr<NumericProgress>{new NumericProgress()};
pixelBlink = std::unique_ptr<PixelBlink>(new PixelBlink(BLINK_LEVEL));
difficulty->setValue(
static_cast<DifficultyLevel>(sram_mem[2])); // TODO: Create abstraction
// difficulty->setValue(
// static_cast<DifficultyLevel>(sram_mem[2])); // TODO: Create
// abstraction
setUpPager();

setUpSpritesPalette();
Expand Down Expand Up @@ -178,8 +179,8 @@ void SelectionScene::setUpPager() {
count = library->getCount();

// TODO: Create abstraction
page = sram_mem[0];
selected = sram_mem[1];
// page = sram_mem[0];
// selected = sram_mem[1];

setPage(page, 0);
updateSelection();
Expand Down Expand Up @@ -293,8 +294,8 @@ void SelectionScene::updateSelection() {
Song_free(song);

// TODO: Create abstraction
sram_mem[0] = page;
sram_mem[1] = selected;
// sram_mem[0] = page;
// sram_mem[1] = selected;
}

void SelectionScene::confirm() {
Expand Down

0 comments on commit 59d94d4

Please sign in to comment.