Skip to content

Commit

Permalink
Change CLASS_VRAM to VRAM_CLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Apr 29, 2024
1 parent fb9ac91 commit 1816e05
Show file tree
Hide file tree
Showing 5 changed files with 579 additions and 121 deletions.
12 changes: 6 additions & 6 deletions slinky/src/linker_symbols_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,22 @@ impl LinkerSymbolsStyle {

pub fn vram_class_start(&self, name: &str) -> String {
match self {
LinkerSymbolsStyle::Splat => format!("{}_CLASS_VRAM_START", name),
LinkerSymbolsStyle::Makerom => format!("_{}ClassVramStart", name),
LinkerSymbolsStyle::Splat => format!("{}_VRAM_CLASS_START", name),
LinkerSymbolsStyle::Makerom => format!("_{}VramClassStart", name),
}
}

pub fn vram_class_end(&self, name: &str) -> String {
match self {
LinkerSymbolsStyle::Splat => format!("{}_CLASS_VRAM_END", name),
LinkerSymbolsStyle::Makerom => format!("_{}ClassVramEnd", name),
LinkerSymbolsStyle::Splat => format!("{}_VRAM_CLASS_END", name),
LinkerSymbolsStyle::Makerom => format!("_{}VramClassEnd", name),
}
}

pub fn vram_class_size(&self, name: &str) -> String {
match self {
LinkerSymbolsStyle::Splat => format!("{}_CLASS_VRAM_SIZE", name),
LinkerSymbolsStyle::Makerom => format!("_{}ClassVramSize", name),
LinkerSymbolsStyle::Splat => format!("{}_VRAM_CLASS_SIZE", name),
LinkerSymbolsStyle::Makerom => format!("_{}VramClassSize", name),
}
}
}
Loading

0 comments on commit 1816e05

Please sign in to comment.