Mercurial > otakunoraifu
comparison system/system_config.cc @ 54:d7cde171a1de
* scn2k_grp.cc now handles commands in a cleanier way \o/
* some cleaning
author | thib |
---|---|
date | Mon, 20 Apr 2009 16:18:55 +0000 |
parents | ddbcbd000206 |
children | 4416cfac86ae |
comparison
equal
deleted
inserted
replaced
53:ddbcbd000206 | 54:d7cde171a1de |
---|---|
1273 } | 1273 } |
1274 const char* TrackName::SETrack(int n) { | 1274 const char* TrackName::SETrack(int n) { |
1275 if (n < 0 || n >= se_deal) return NULL; | 1275 if (n < 0 || n >= se_deal) return NULL; |
1276 return se_track[n]; | 1276 return se_track[n]; |
1277 } | 1277 } |
1278 | |
1278 void TrackName::AddSE(int n, char* file) { | 1279 void TrackName::AddSE(int n, char* file) { |
1279 if (se_deal <= n) ExpandSE(n); | 1280 if (se_deal <= n) ExpandSE(n); |
1280 if (se_track[n]) delete[] se_track[n]; | 1281 if (se_track[n]) delete[] se_track[n]; |
1281 se_track[n] = new char[strlen(file)+1]; | 1282 se_track[n] = new char[strlen(file)+1]; |
1282 strcpy(se_track[n], file); | 1283 strcpy(se_track[n], file); |