spelling change: Rom -> ROM - PLEASE READ

@Grauw: please update your MultiPCM code.
i know it's just a trivial change I made, but in my opinion "ROM"
indicates it's an acronym...
This commit is contained in:
tildearrow 2022-05-12 22:15:03 -05:00
parent 9bac00efe5
commit 1b4256bb28
5 changed files with 35 additions and 26 deletions

View file

@ -491,7 +491,7 @@ void DivEngine::notifyWaveChange(int wave) {
BUSY_END;
}
int DivEngine::loadSampleRom(String path, ssize_t expectedSize, unsigned char*& ret) {
int DivEngine::loadSampleROM(String path, ssize_t expectedSize, unsigned char*& ret) {
ret = NULL;
if (path.empty()) {
return 0;
@ -551,14 +551,23 @@ int DivEngine::loadSampleRom(String path, ssize_t expectedSize, unsigned char*&
return 0;
}
int DivEngine::loadSampleRoms() {
delete[] yrw801Rom;
delete[] tg100Rom;
delete[] mu5Rom;
int DivEngine::loadSampleROMs() {
if (yrw801ROM!=NULL) {
delete[] yrw801ROM;
yrw801ROM=NULL;
}
if (tg100ROM!=NULL) {
delete[] tg100ROM;
tg100ROM=NULL;
}
if (mu5ROM!=NULL) {
delete[] mu5ROM;
mu5ROM=NULL;
}
int error = 0;
error += loadSampleRom(getConfString("yrw801Path",""), 0x200000, yrw801Rom);
error += loadSampleRom(getConfString("tg100Path",""), 0x200000, tg100Rom);
error += loadSampleRom(getConfString("mu5Path",""), 0x200000, mu5Rom);
error += loadSampleROM(getConfString("yrw801Path",""), 0x200000, yrw801ROM);
error += loadSampleROM(getConfString("tg100Path",""), 0x200000, tg100ROM);
error += loadSampleROM(getConfString("mu5Path",""), 0x200000, mu5ROM);
return error;
}
@ -2779,7 +2788,7 @@ bool DivEngine::init() {
loadConf();
loadSampleRoms();
loadSampleROMs();
// set default system preset
if (!hasLoadedSomething) {
@ -2854,8 +2863,8 @@ bool DivEngine::quit() {
active=false;
delete[] oscBuf[0];
delete[] oscBuf[1];
delete[] yrw801Rom;
delete[] tg100Rom;
delete[] mu5Rom;
if (yrw801ROM!=NULL) delete[] yrw801ROM;
if (tg100ROM!=NULL) delete[] tg100ROM;
if (mu5ROM!=NULL) delete[] mu5ROM;
return true;
}

View file

@ -397,7 +397,7 @@ class DivEngine {
void loadOPM(SafeReader& reader, std::vector<DivInstrument*>& ret, String& stripPath);
void loadFF(SafeReader& reader, std::vector<DivInstrument*>& ret, String& stripPath);
int loadSampleRom(String path, ssize_t expectedSize, unsigned char*& ret);
int loadSampleROM(String path, ssize_t expectedSize, unsigned char*& ret);
bool initAudioBackend();
bool deinitAudioBackend();
@ -786,7 +786,7 @@ class DivEngine {
const char** getRegisterSheet(int sys);
// load sample ROMs
int loadSampleRoms();
int loadSampleROMs();
// UNSAFE render samples - only execute when locked
void renderSamples();
@ -861,9 +861,9 @@ class DivEngine {
// terminate the engine.
bool quit();
unsigned char* yrw801Rom;
unsigned char* tg100Rom;
unsigned char* mu5Rom;
unsigned char* yrw801ROM;
unsigned char* tg100ROM;
unsigned char* mu5ROM;
DivEngine():
output(NULL),
@ -940,9 +940,9 @@ class DivEngine {
oscWritePos(0),
tickMult(1),
processTime(0),
yrw801Rom(NULL),
tg100Rom(NULL),
mu5Rom(NULL) {
yrw801ROM(NULL),
tg100ROM(NULL),
mu5ROM(NULL) {
memset(isMuted,0,DIV_MAX_CHANS*sizeof(bool));
memset(keyHit,0,DIV_MAX_CHANS*sizeof(bool));
memset(dispatchChanOfChan,0,DIV_MAX_CHANS*sizeof(int));