mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
commit
b890d07f75
@ -121,7 +121,7 @@ bool loadMusicInfo(string dir) {
|
|||||||
for(int i=0; i<size(dir); i++) if(dir[i] == '/' || dir[i] == '\\')
|
for(int i=0; i<size(dir); i++) if(dir[i] == '/' || dir[i] == '\\')
|
||||||
dir2 = dir.substr(0, i+1);
|
dir2 = dir.substr(0, i+1);
|
||||||
char buf[1000];
|
char buf[1000];
|
||||||
while(fgets(buf, 800, f) > 0) {
|
while(fgets(buf, 800, f) != NULL) {
|
||||||
for(int i=0; buf[i]; i++) if(buf[i] == 10 || buf[i] == 13) buf[i] = 0;
|
for(int i=0; buf[i]; i++) if(buf[i] == 10 || buf[i] == 13) buf[i] = 0;
|
||||||
if(buf[0] == '[' && buf[3] == ']') {
|
if(buf[0] == '[' && buf[3] == ']') {
|
||||||
int id = (buf[1] - '0') * 10 + buf[2] - '0';
|
int id = (buf[1] - '0') * 10 + buf[2] - '0';
|
||||||
|
Loading…
Reference in New Issue
Block a user