mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
Add string-based renderer backend configuration
Rather than using integer-indices, just use plaintext case-insensitive names and leave the actual enum indexes as an implementation detail.
This commit is contained in:
parent
2c57936c50
commit
528ed510c2
4 changed files with 38 additions and 3 deletions
|
@ -32,7 +32,7 @@ GPU::GPU(Memory& mem, EmulatorConfig& config) : mem(mem), config(config) {
|
|||
}
|
||||
#endif
|
||||
default: {
|
||||
Helpers::panic("Invalid rendering backend index: %d", static_cast<s8>(config.rendererType));
|
||||
Helpers::panic("Rendering backend not supported: %s", toString(config.rendererType));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue