actual DSi camera support (#1520)

basically feeding something that isn't a fixed stripe pattern, and emulating enough of the camera hardware to make this work
This commit is contained in:
Arisotura
2022-10-02 16:47:57 +02:00
committed by GitHub
parent c1c4cbc838
commit 3f4573574a
23 changed files with 2024 additions and 270 deletions

View File

@ -140,6 +140,8 @@ bool DSBatteryLevelOkay;
int DSiBatteryLevel;
bool DSiBatteryCharging;
CameraConfig Camera[2];
const char* kConfigFile = "melonDS.ini";
const char* kUniqueConfigFile = "melonDS.%d.ini";
@ -316,6 +318,17 @@ ConfigEntry ConfigFile[] =
{"DSiBatteryLevel", 0, &DSiBatteryLevel, 0xF, true},
{"DSiBatteryCharging", 1, &DSiBatteryCharging, true, true},
// TODO!!
// we need a more elegant way to deal with this
{"Camera0_InputType", 0, &Camera[0].InputType, 0, false},
{"Camera0_ImagePath", 2, &Camera[0].ImagePath, (std::string)"", false},
{"Camera0_CamDeviceName", 2, &Camera[0].CamDeviceName, (std::string)"", false},
{"Camera0_XFlip", 1, &Camera[0].XFlip, false, false},
{"Camera1_InputType", 0, &Camera[1].InputType, 0, false},
{"Camera1_ImagePath", 2, &Camera[1].ImagePath, (std::string)"", false},
{"Camera1_CamDeviceName", 2, &Camera[1].CamDeviceName, (std::string)"", false},
{"Camera1_XFlip", 1, &Camera[1].XFlip, false, false},
{"", -1, nullptr, 0, false}
};