mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-05-20 05:40:49 -04:00
peripheral fingerprinting only considers the first 64k of cartridge data
This commit is contained in:
parent
8308e4037c
commit
8edee622cc
|
@ -75,7 +75,9 @@ func Fingerprint(port plugging.PortID, loader cartridgeloader.Loader) ports.NewP
|
|||
|
||||
func matchPattern(patterns [][]byte, loader cartridgeloader.Loader) bool {
|
||||
for _, p := range patterns {
|
||||
if loader.Contains(p) {
|
||||
// limit check to the first 64k of data. any data beyond that is likely
|
||||
// to be non-program data and only likely to return false-positives
|
||||
if loader.ContainsLimit(65536, p) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue