Skip to content

Commit

Permalink
Add submission from Sono
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekkio committed Aug 11, 2024
1 parent fd9e10b commit 8ebb19c
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Site source code for https://gbhwdb.gekkio.fi
* Red Vázquez
* Smelly-Ghost
* Smileynator
* Sono
* terinjokes
* tobiasvl
* zear
4 changes: 2 additions & 2 deletions backend/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ where
if let Some(captures) = self.regex.captures(label) {
(self.f)(captures)
} else {
Err("no match".to_owned())
Err(format!("no match for {label}"))
}
}
fn parsers(&self) -> Vec<&SingleParser<T>> {
Expand Down Expand Up @@ -357,7 +357,7 @@ where
matches
.iter()
.find_map(|m| self.parsers[m].parse(label).ok())
.ok_or_else(|| "no match".to_owned())
.ok_or_else(|| format!("no match for {label}"))
}

fn parsers(&self) -> Vec<&SingleParser<T>> {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/parser/oxy_u5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub type OxyU5 = ChipYearWeek;
pub fn unknown() -> &'static impl LabelParser<OxyU5> {
single_parser!(
OxyU5,
r#"^CP6465\ B\ 02\ KOR([0-9]{2})([0-9]{2})\ [0-9]{6}$"#,
r#"^CP6465\ B\ 0[0-9]\ KOR([0-9]{2})([0-9]{2})\ [0-9]{6}$"#,
move |c| {
Ok(OxyU5 {
kind: "CP6465".to_owned(),
Expand Down
3 changes: 3 additions & 0 deletions data/consoles/OXY/MEF10379532/01_front.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions data/consoles/OXY/MEF10379532/02_back.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions data/consoles/OXY/MEF10379532/03_pcb_front.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions data/consoles/OXY/MEF10379532/04_pcb_back.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions data/consoles/OXY/MEF10379532/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"slug": "MEF10379532",
"contributor": "Sono",
"shell": {
"color": "Pink",
"release_code": "C/OXY-EUR",
"serial": "MEF10379532"
},
"mainboard": {
"label": "OXY-CPU-02",
"circled_letters": "CM",
"year": 2005,
"u1": {
"label": "0535 2m CPU AGB E Ⓜ © 2004 Nintendo JAPAN ARM"
},
"u2": {
"label": "MITSUMI JAPAN 518D PM C"
},
"u4": {
"label": "AKV 522"
},
"u5": {
"label": "CP6465 B 04 KOR0531 633017"
}
}
}

0 comments on commit 8ebb19c

Please sign in to comment.