mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples: clean file path usage in the examples, move all the fonts in the common assets folder (#12736)
This commit is contained in:
parent
6f5d952d8f
commit
89eb5425cd
14 changed files with 19 additions and 11 deletions
|
@ -910,7 +910,7 @@ fn (mut app App) showfps() {
|
|||
fn main() {
|
||||
mut app := &App{}
|
||||
app.new_game()
|
||||
mut font_path := os.resource_abs_path(os.join_path('../assets/fonts/', 'RobotoMono-Regular.ttf'))
|
||||
mut font_path := os.resource_abs_path(os.join_path('..', 'assets', 'fonts', 'RobotoMono-Regular.ttf'))
|
||||
$if android {
|
||||
font_path = 'fonts/RobotoMono-Regular.ttf'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue