all repos — mgba @ ed176177cec638a49488afaebc5aba53e2887886

mGBA Game Boy Advance Emulator

src/core/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 mDirectorySet {
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 mDirectorySetInit(struct mDirectorySet* dirs);
24void mDirectorySetDeinit(struct mDirectorySet* dirs);
25
26void mDirectorySetAttachBase(struct mDirectorySet* dirs, struct VDir* base);
27void mDirectorySetDetachBase(struct mDirectorySet* dirs);
28
29struct VFile* mDirectorySetOpenPath(struct mDirectorySet* dirs, const char* path, bool (*filter)(struct VFile*));
30
31struct GBAOptions;
32void mDirectorySetMapOptions(struct mDirectorySet* dirs, const struct GBAOptions* opts);
33#endif
34
35#endif