Add basic save file structure
- Create save.h with gameDataSav struct - Add placeholder functions for save handling - Foundation for BOTW save data manipulation
This commit is contained in:
parent
46e530be36
commit
adfc526f6c
2 changed files with 31 additions and 0 deletions
16
source/save_basic.c
Normal file
16
source/save_basic.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <switch.h>
|
||||
#include "save_basic.h"
|
||||
|
||||
static gameDataSav save_data = {0};
|
||||
|
||||
void openSave() {
|
||||
printf("Opening BOTW save data...\n");
|
||||
// TODO: Implement save file reading
|
||||
}
|
||||
|
||||
void processSave() {
|
||||
printf("Processing save data...\n");
|
||||
// TODO: Implement save processing logic
|
||||
}
|
||||
15
source/save_basic.h
Normal file
15
source/save_basic.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef SAVE_H
|
||||
#define SAVE_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
size_t length;
|
||||
char * saveFile;
|
||||
} gameDataSav;
|
||||
|
||||
void processSave();
|
||||
void openSave();
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue