mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-10-06 21:57:56 +03:00
21 lines
778 B
C
21 lines
778 B
C
#ifndef ASSET_NXA_UTIL_H
|
|
#define ASSET_NXA_UTIL_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "usb-rank.h"
|
|
#include "usb-save.h"
|
|
|
|
// load from file and decrypt, returns decrypted struct
|
|
struct asset_nxa_usb_rank* asset_nxa_usb_rank_load_from_file(const char* path, bool encrypted);
|
|
|
|
// takes decrypted rank data, encrypts it and writes it to file
|
|
bool asset_nxa_usb_rank_save_to_file(const char* path, const struct asset_nxa_usb_rank* rank, bool encrypt);
|
|
|
|
// load from file and decrypt, returns decrypted struct
|
|
struct asset_nxa_usb_save* asset_nxa_usb_save_load_from_file(const char* path, bool encrypted);
|
|
|
|
// takes decrypted save data, encrypts it and writes it to file
|
|
bool asset_nxa_usb_save_save_to_file(const char* path, const struct asset_nxa_usb_save* save, bool encrypt);
|
|
|
|
#endif |