Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osu-fpga
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fang Lu
osu-fpga
Commits
6a6036b4
Commit
6a6036b4
authored
7 years ago
by
Fang Lu
Browse files
Options
Downloads
Patches
Plain Diff
osufs - minor fixes
parent
0916b374
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
osufs/osufs/osu.cpp
+7
-8
7 additions, 8 deletions
osufs/osufs/osu.cpp
osufs/osufs/osu_object_analyze/osu_object_parser.cpp
+2
-1
2 additions, 1 deletion
osufs/osufs/osu_object_analyze/osu_object_parser.cpp
osufs/osufs/wavenc.c
+0
-1
0 additions, 1 deletion
osufs/osufs/wavenc.c
with
9 additions
and
10 deletions
osufs/osufs/osu.cpp
+
7
−
8
View file @
6a6036b4
...
@@ -94,13 +94,13 @@ addr = img_write_dither64(cbuf, dev, addr, &(meta-> entry ## _w), &(meta-> entry
...
@@ -94,13 +94,13 @@ addr = img_write_dither64(cbuf, dev, addr, &(meta-> entry ## _w), &(meta-> entry
#pragma clang diagnostic push
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Waddress-of-packed-member"
#pragma clang diagnostic ignored "-Waddress-of-packed-member"
SKIN_IMPORT_IMAGE
(
hit_0
,
"hit0.png"
,
48
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_0
,
"hit0.png"
,
72
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_50
,
"hit50.png"
,
48
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_50
,
"hit50.png"
,
72
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_100
,
"hit100.png"
,
48
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_100
,
"hit100.png"
,
72
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_300
,
"hit300.png"
,
48
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_300
,
"hit300.png"
,
72
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_100k
,
"hit100k.png"
,
48
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_100k
,
"hit100k.png"
,
72
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_300k
,
"hit300k.png"
,
48
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_300k
,
"hit300k.png"
,
72
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_300g
,
"hit300g.png"
,
48
,
-
1
)
SKIN_IMPORT_IMAGE
(
hit_300g
,
"hit300g.png"
,
72
,
-
1
)
SKIN_IMPORT_IMAGE
(
pause_back
,
"pause-back.png"
,
235
,
-
1
)
SKIN_IMPORT_IMAGE
(
pause_back
,
"pause-back.png"
,
235
,
-
1
)
SKIN_IMPORT_IMAGE
(
pause_continue
,
"pause-continue.png"
,
235
,
-
1
)
SKIN_IMPORT_IMAGE
(
pause_continue
,
"pause-continue.png"
,
235
,
-
1
)
...
@@ -228,7 +228,6 @@ osu_song osu_read_osu(const char *filename, mdev *dev, osu_meta *meta,
...
@@ -228,7 +228,6 @@ osu_song osu_read_osu(const char *filename, mdev *dev, osu_meta *meta,
osu_ini_proc
proc
=
&
osu_parse_general
;
osu_ini_proc
proc
=
&
osu_parse_general
;
while
(
fgets
(
line
,
1023
,
fp
))
{
while
(
fgets
(
line
,
1023
,
fp
))
{
printf
(
line
);
// Trim trailing whitespace
// Trim trailing whitespace
char
*
endc
=
line
+
strlen
(
line
)
-
1
;
char
*
endc
=
line
+
strlen
(
line
)
-
1
;
while
(
isspace
(
*
endc
))
while
(
isspace
(
*
endc
))
...
...
This diff is collapsed.
Click to expand it.
osufs/osufs/osu_object_analyze/osu_object_parser.cpp
+
2
−
1
View file @
6a6036b4
...
@@ -39,10 +39,11 @@ int osu_parse_hit_object(char* line, osu_song* song){
...
@@ -39,10 +39,11 @@ int osu_parse_hit_object(char* line, osu_song* song){
elemn
.
color
=
((
song
->
combo_colors
[
combo_count
][
0
])
<<
16
)
|
elemn
.
color
=
((
song
->
combo_colors
[
combo_count
][
0
])
<<
16
)
|
((
song
->
combo_colors
[
combo_count
][
1
])
<<
8
)
|
((
song
->
combo_colors
[
combo_count
][
1
])
<<
8
)
|
((
song
->
combo_colors
[
combo_count
][
2
]));
((
song
->
combo_colors
[
combo_count
][
2
]));
elemn
.
extra2
=
combo_count
;
//hit sound
//hit sound
int
hitsound
;
int
hitsound
;
elemn
.
sound
[
0
]
=
'
'
;
// TODO
elemn
.
sound
[
0
]
=
'
s
'
;
// TODO
elemn
.
sound
[
1
]
=
'h'
;
elemn
.
sound
[
1
]
=
'h'
;
sscanf
(
v
[
4
].
c_str
(),
"%d"
,
&
hitsound
);
sscanf
(
v
[
4
].
c_str
(),
"%d"
,
&
hitsound
);
if
(
hitsound
&
8
)
if
(
hitsound
&
8
)
...
...
This diff is collapsed.
Click to expand it.
osufs/osufs/wavenc.c
+
0
−
1
View file @
6a6036b4
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
#include
<string.h>
#include
<string.h>
uint32_t
wav_write
(
const
char
*
filename
,
mdev
*
dev
,
uint32_t
addr
)
{
uint32_t
wav_write
(
const
char
*
filename
,
mdev
*
dev
,
uint32_t
addr
)
{
return
addr
;
char
cbuf
[
1024
];
char
cbuf
[
1024
];
int
ret
;
int
ret
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment