sdvx: clean up valk cab check (#498)

This commit is contained in:
bicarus
2026-01-04 19:49:55 -08:00
committed by GitHub
parent 1354d63b85
commit 7f281a50c5
6 changed files with 20 additions and 28 deletions
+8 -5
View File
@@ -4,6 +4,7 @@
#include <optional>
#include <cstdint>
#include "avs/game.h"
#include "games/game.h"
namespace games::sdvx {
@@ -25,6 +26,13 @@ namespace games::sdvx {
// states
extern bool SHOW_VM_MONITOR_WARNING;
static inline bool is_valkyrie_model() {
return (
avs::game::is_model("KFC") &&
(avs::game::SPEC[0] == 'G' || avs::game::SPEC[0] == 'H')
);
}
class SDVXGame : public games::Game {
public:
SDVXGame();
@@ -33,11 +41,6 @@ namespace games::sdvx {
virtual void post_attach() override;
virtual void detach() override;
private:
// don't be tempted to make this into a public or a global variable
// various modules need to check if VM mode is active and they should
// not depend on the fact that SDVX module is active (since it can be
// inactive on cabs or partial I/O setup)
bool VALKYRIE_MODEL = false;
void detect_sound_output_device();
};
}