GBA: const-correctness in GBAMap*ToContext

This commit is contained in:
Jeffrey Pfau 2014-11-04 01:56:59 -08:00
parent 4115b240eb
commit 75557d11b2
2 changed files with 4 additions and 4 deletions

View File

@ -220,7 +220,7 @@ static THREAD_ENTRY _GBAThreadRun(void* context) {
return 0;
}
void GBAMapOptionsToContext(struct GBAOptions* opts, struct GBAThread* threadContext) {
void GBAMapOptionsToContext(const struct GBAOptions* opts, struct GBAThread* threadContext) {
threadContext->bios = VFileOpen(opts->bios, O_RDONLY);
threadContext->frameskip = opts->frameskip;
threadContext->logLevel = opts->logLevel;
@ -238,7 +238,7 @@ void GBAMapOptionsToContext(struct GBAOptions* opts, struct GBAThread* threadCon
}
}
void GBAMapArgumentsToContext(struct GBAArguments* args, struct GBAThread* threadContext) {
void GBAMapArgumentsToContext(const struct GBAArguments* args, struct GBAThread* threadContext) {
if (args->dirmode) {
threadContext->gameDir = VDirOpen(args->fname);
threadContext->stateDir = threadContext->gameDir;

View File

@ -95,8 +95,8 @@ struct GBAThread {
int rewindBufferWriteOffset;
};
void GBAMapOptionsToContext(struct GBAOptions*, struct GBAThread*);
void GBAMapArgumentsToContext(struct GBAArguments*, struct GBAThread*);
void GBAMapOptionsToContext(const struct GBAOptions*, struct GBAThread*);
void GBAMapArgumentsToContext(const struct GBAArguments*, struct GBAThread*);
bool GBAThreadStart(struct GBAThread* threadContext);
bool GBAThreadHasStarted(struct GBAThread* threadContext);