nesemu/mappers/mappers.c

19 lines
374 B
C
Raw Normal View History

2023-11-26 12:11:49 -05:00
//
// Created by william on 10/15/23.
//
2024-04-30 12:28:43 -04:00
#include "log.h"
2023-11-26 12:11:49 -05:00
#include <stdlib.h>
#include "../include/mapper.h"
#include "simple_mapper.c"
Mapper get_mapper(enum MapperType type) {
switch (type) {
case MAPPER_TYPE_SIMPLE:
return get_simple_mapper();
default:
log_error("Unsupported mapper %u", type);
exit(-1);
}
}