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"
|
2024-05-23 22:44:52 -04:00
|
|
|
#include "nrom.c"
|
2023-11-26 12:11:49 -05:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|