mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
C++ compiler support v2 (#5252)
* Get C++ compilers working * Fix Formatting
This commit is contained in:
8
src/external/jar_mod.h
vendored
8
src/external/jar_mod.h
vendored
@ -1148,7 +1148,7 @@ static bool jar_mod_load( jar_mod_context_t * modctx, void * mod_data, int mod_d
|
||||
{
|
||||
// 15 Samples modules support
|
||||
// Shift the whole datas to make it look likes a standard 4 channels mod.
|
||||
memcopy(&(modctx->song.signature), "M.K.", 4);
|
||||
memcopy(&(modctx->song.signature), (void *)"M.K.", 4);
|
||||
memcopy(&(modctx->song.length), &(modctx->song.samples[15]), 130);
|
||||
memclear(&(modctx->song.samples[15]), 0, 480);
|
||||
modmemory += 600;
|
||||
@ -1535,13 +1535,13 @@ mulong jar_mod_load_file(jar_mod_context_t * modctx, const char* filename)
|
||||
|
||||
if(fsize && fsize < 32*1024*1024)
|
||||
{
|
||||
modctx->modfile = JARMOD_MALLOC(fsize);
|
||||
modctx->modfile = (muchar *) JARMOD_MALLOC(fsize);
|
||||
modctx->modfilesize = fsize;
|
||||
memset(modctx->modfile, 0, fsize);
|
||||
fread(modctx->modfile, fsize, 1, f);
|
||||
fclose(f);
|
||||
|
||||
if(!jar_mod_load(modctx, (void*)modctx->modfile, fsize)) fsize = 0;
|
||||
|
||||
if(!jar_mod_load(modctx, (void *)modctx->modfile, fsize)) fsize = 0;
|
||||
} else fsize = 0;
|
||||
}
|
||||
return fsize;
|
||||
|
||||
Reference in New Issue
Block a user