- Implementat un canal de só en crú, sense envelope, sweep ni res
This commit is contained in:
@@ -65,6 +65,8 @@ int main(int argc, char *argv[])
|
||||
const uint32_t clock = 4194304;
|
||||
const uint32_t update_freq = clock / 10;
|
||||
|
||||
SDL_Init(SDL_INIT_EVERYTHING);
|
||||
|
||||
FILE *f = fopen(argv[1], "rb");
|
||||
if (!f) { printf("ABORTING: Rom not found.\n"); exit(1); }
|
||||
fseek(f, 0, SEEK_END);
|
||||
@@ -73,12 +75,12 @@ int main(int argc, char *argv[])
|
||||
uint8_t *buffer = (uint8_t*)malloc(filesize);
|
||||
fread(buffer, filesize, 1, f);
|
||||
fclose(f);
|
||||
|
||||
mem::init(buffer, filesize);
|
||||
|
||||
sm83dis::loadSymbols();
|
||||
sm83::reset();
|
||||
|
||||
SDL_Init(SDL_INIT_EVERYTHING);
|
||||
gbscreen::init(0);
|
||||
debug::init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user