rename system to platform

easier to understand
This commit is contained in:
tildearrow 2022-01-16 01:17:30 -05:00
parent 6fe8e73d7f
commit 45b6c19867
10 changed files with 22 additions and 22 deletions

View file

@ -1930,8 +1930,8 @@ SafeWriter* DivEngine::saveFur() {
SafeWriter* DivEngine::saveDMF() {
// fail if more than one system
if (song.systemLen!=1) {
logE("cannot save multiple platforms in this format!\n");
lastError="multiple platforms not possible on .dmf";
logE("cannot save multiple systems in this format!\n");
lastError="multiple systems not possible on .dmf";
return NULL;
}
// fail if this is an YMU759 song
@ -1942,8 +1942,8 @@ SafeWriter* DivEngine::saveDMF() {
}
// fail if the system is Furnace-exclusive
if (systemToFile(song.system[0])&0x80) {
logE("cannot save Furnace-exclusive platform song!\n");
lastError="this platform is not possible on .dmf";
logE("cannot save Furnace-exclusive system song!\n");
lastError="this system is not possible on .dmf";
return NULL;
}

View file

@ -658,7 +658,7 @@ void FurnaceGUI::drawInsEdit() {
}
ImGui::SliderScalar("Detune 2",ImGuiDataType_U8,&op.dt2,&_ZERO,&_THREE);
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Only for Arcade platform");
ImGui::SetTooltip("Only for Arcade system");
}
bool ssgOn=op.ssgEnv&8;
unsigned char ssgEnv=op.ssgEnv&7;
@ -670,7 +670,7 @@ void FurnaceGUI::drawInsEdit() {
op.ssgEnv=(op.ssgEnv&7)|(ssgOn<<3);
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Only for Genesis and Neo Geo platforms");
ImGui::SetTooltip("Only for Genesis and Neo Geo systems");
}
bool amOn=op.am;
@ -2862,7 +2862,7 @@ void FurnaceGUI::processDrags(int dragX, int dragY) {
#define sysAddOption(x) \
if (ImGui::MenuItem(e->getSystemName(x))) { \
if (!e->addSystem(x)) { \
showError("cannot add platform! ("+e->getLastError()+")"); \
showError("cannot add system! ("+e->getLastError()+")"); \
} \
updateWindowTitle(); \
}
@ -2977,7 +2977,7 @@ bool FurnaceGUI::loop() {
openFileDialog(GUI_FILE_SAVE);
}
ImGui::Separator();
if (ImGui::BeginMenu("add platform...")) {
if (ImGui::BeginMenu("add system...")) {
sysAddOption(DIV_SYSTEM_GENESIS);
sysAddOption(DIV_SYSTEM_GENESIS_EXT);
sysAddOption(DIV_SYSTEM_SMS);
@ -2998,7 +2998,7 @@ bool FurnaceGUI::loop() {
sysAddOption(DIV_SYSTEM_AY8930);
ImGui::EndMenu();
}
if (ImGui::BeginMenu("change platform...")) {
if (ImGui::BeginMenu("change system...")) {
for (int i=0; i<e->song.systemLen; i++) {
if (ImGui::BeginMenu(fmt::sprintf("%d. %s##_SYSC%d",i+1,e->getSystemName(e->song.system[i]),i).c_str())) {
sysChangeOption(i,DIV_SYSTEM_GENESIS);
@ -3024,11 +3024,11 @@ bool FurnaceGUI::loop() {
}
ImGui::EndMenu();
}
if (ImGui::BeginMenu("remove platform...")) {
if (ImGui::BeginMenu("remove system...")) {
for (int i=0; i<e->song.systemLen; i++) {
if (ImGui::MenuItem(fmt::sprintf("%d. %s##_SYSR%d",i+1,e->getSystemName(e->song.system[i]),i).c_str())) {
if (!e->removeSystem(i)) {
showError("cannot remove platform! ("+e->getLastError()+")");
showError("cannot remove system! ("+e->getLastError()+")");
}
}
}