mirror of
https://github.com/WiIIiam278/breaking-bad-ds.git
synced 2025-06-19 01:05:33 -04:00

* 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
32 lines
589 B
C++
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(); |