breaking-bad-ds/source/save.hpp
William cd9753f5f6
Fix line endings, bug, text & sound fixes (#8)
* Fix wrong line endings

* Fixup launch tasks

* Fixup nflib lib dir

* Fixup debugger, improve dialogue save tracking

* Fixup typo

* Improve stability of game end logic

* Dialogue text fixes

* Fix SFX bug on Hank's mineral screen

* Bump to 1.0.6

* Add SFX to cracking minigame
2023-11-22 01:04:19 +00:00

32 lines
589 B
C++

// This file is licensed under the GNU GPL 3.0
//
// Created by cervi on 24/08/2022.
//
#pragma once
#include <cstdio>
#include <nds.h>
#include "card.hpp"
#define MINERAL_SAVE_SIZE 12
#define POWER_UP_SAVE_SIZE 5
class SaveData {
public:
const u32 saveVersion = 1;
void clear();
void loadData();
void saveData();
bool saveExists = false;
bool minerals[MINERAL_SAVE_SIZE] = {false};
bool powerUps[POWER_UP_SAVE_SIZE] = {false};
u16 currentDay = 0;
u16 currentMoney = 0;
u16 currentDialogue = 0;
};
extern SaveData globalSave;
bool canSave();