- removed a few dependencies of the Timidity++ code from the main GZDoom code base.
The big issues, i.e. FileReader and SoundFontReader still need to be handled to make this a standalone library.
This commit is contained in:
parent
b3a9884eb1
commit
df7a4bb0d9
6 changed files with 265 additions and 15 deletions
|
|
@ -26,7 +26,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
#include "common.h"
|
||||
#include "instrum.h"
|
||||
#include "quantity.h"
|
||||
#include "cmdlib.h"
|
||||
|
||||
|
||||
namespace TimidityPlus
|
||||
|
|
@ -642,8 +641,9 @@ int Instruments::read_config_file(const char *name, int self, int allow_missing_
|
|||
init_mblock(&varbuf);
|
||||
if (!self)
|
||||
{
|
||||
basedir = strdup_mblock(&varbuf, tf->filename.c_str());
|
||||
FixPathSeperator((char*)basedir);
|
||||
char *c = strdup_mblock(&varbuf, tf->filename.c_str());
|
||||
basedir = c;
|
||||
for (; c; c++) if (*c == '\\') *c = '/';
|
||||
sep = (char*)strrchr(basedir, '/');
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue