all repos — mgba @ 2322e942c4935435ab1ba6fd09e1600f3da18616

mGBA Game Boy Advance Emulator

src/gba/context/directories.h (view raw)

 1/* Copyright (c) 2013-2015 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef DIRECTORIES_H
 7#define DIRECTORIES_H
 8
 9#include "util/common.h"
10
11#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
12struct VDir;
13
14struct GBADirectorySet {
15	struct VDir* base;
16	struct VDir* archive;
17	struct VDir* save;
18	struct VDir* patch;
19	struct VDir* state;
20	struct VDir* screenshot;
21};
22
23void GBADirectorySetInit(struct GBADirectorySet* dirs);
24void GBADirectorySetDeinit(struct GBADirectorySet* dirs);
25
26void GBADirectorySetAttachBase(struct GBADirectorySet* dirs, struct VDir* base);
27void GBADirectorySetDetachBase(struct GBADirectorySet* dirs);
28
29struct VFile* GBADirectorySetOpenPath(struct GBADirectorySet* dirs, const char* path, bool (*filter)(struct VFile*));
30
31struct GBAOptions;
32void GBADirectorySetMapOptions(struct GBADirectorySet* dirs, const struct GBAOptions* opts);
33#endif
34
35#endif