Skip to content
Snippets Groups Projects
Commit 6a6036b4 authored by Fang Lu's avatar Fang Lu
Browse files

osufs - minor fixes

parent 0916b374
No related branches found
No related tags found
No related merge requests found
...@@ -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))
......
...@@ -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)
......
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment