mirror of https://github.com/mgba-emu/mgba.git
GBA: const-correctness in GBAMap*ToContext
This commit is contained in:
parent
4115b240eb
commit
75557d11b2
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue