-
Notifications
You must be signed in to change notification settings - Fork 3
/
unpack.h
executable file
·28 lines (25 loc) · 1.09 KB
/
unpack.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "pakfile.h"
#include <string>
#include <map>
#include <functional>
#include <iostream>
namespace scpak
{
typedef std::function<std::string(const std::string &outputDir, const PakItem &item)> unpacker_type;
void unpack(
const PakFile &pak, const std::string &dirPath,
const std::map<std::string, unpacker_type> &unpackers,
const unpacker_type &default_unpacker);
void unpack(const PakFile &pak, const std::string &dirPath,
bool unpack_text = false,
bool unpack_bitmapFont = false,
bool unpack_texture = false,
bool unpack_sound = false);
void unpackAll(const PakFile &pak, const std::string &dirPath);
void unpack_raw(const std::string &outputDir, const PakItem &item);
void unpack_string(const std::string &outputDir, const PakItem &item);
void unpack_bitmapFont(const std::string &outputDir, const PakItem &item);
std::string unpack_texture(const std::string &outputDir, const PakItem &item);
void unpack_soundBuffer(const std::string &outputDir, const PakItem &item);
}