chore: Refactor yaze_test and test_editor for improved organization and readability

This commit is contained in:
scawful
2024-08-25 11:02:37 -04:00
parent c62b2c0913
commit b4f07563a8
4 changed files with 23 additions and 7 deletions

View File

@@ -17,16 +17,21 @@ void yaze_check_version(const char* version) {
return;
}
void yaze_init(yaze_flags* flags) {
int yaze_init(yaze_flags* flags) {
if (flags == nullptr) {
return;
return -1;
}
if (flags->rom_filename == nullptr) {
return;
return -1;
}
flags->rom = yaze_load_rom(flags->rom_filename);
if (flags->rom == nullptr) {
return -1;
}
return 0;
}
void yaze_cleanup(yaze_flags* flags) {