Minor fixes. Also toying with dmalloc.
This commit is contained in:
parent
9be4485177
commit
a6004882dd
5 changed files with 36 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
JOEY = /home/scott/joey
|
||||
#CONFIG += SDL12
|
||||
CONFIG += SDL2
|
||||
#CONFIG += dmalloc
|
||||
|
||||
|
||||
TEMPLATE = app
|
||||
|
@ -62,3 +63,11 @@ OTHER_FILES += \
|
|||
src/jIIgs.asm \
|
||||
src/jIIgs.macro \
|
||||
joey.pri
|
||||
|
||||
dmalloc {
|
||||
DEFINES += DMALLOC
|
||||
INCLUDEPATH += /opt/dmalloc/include
|
||||
LIBS += \
|
||||
-L/opt/dmalloc/lib \
|
||||
-ldmallocth
|
||||
}
|
||||
|
|
|
@ -254,11 +254,13 @@ void jlSoundFree(jlSoundT *sound) {
|
|||
|
||||
bool jlSoundIsPlaying(jlSoundT *sound) {
|
||||
//***TODO***
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool _jlSoundLoad(jlSoundT **sound, char *filename) {
|
||||
//***TODO***
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -356,9 +358,11 @@ void jlUtilShutdown(void) {
|
|||
// Shutdown tools
|
||||
NTPShutDown(); // NinjaTracker
|
||||
UnloadOneTool(222);
|
||||
/*
|
||||
MSShutDown(); // MIDI Synth
|
||||
UnloadOneTool(35);
|
||||
SoundShutDown(); // Sound Tool Set
|
||||
*/
|
||||
MTShutDown(); // Misc Tools
|
||||
DisposeAll(userid());
|
||||
MMShutDown(userid()); // Memory Manager
|
||||
|
@ -389,6 +393,7 @@ void jlUtilStartup(char *appTitle) {
|
|||
tempHandle = NewHandle((LongWord)0x8000, userid(), (Word)(attrLocked | attrFixed | attrAddr | attrBank), (Pointer)0x012000);
|
||||
JOEY_CHECK_TOOL_ERROR("NewHandle SHR")
|
||||
|
||||
/*
|
||||
// Sound Tool Set
|
||||
tempHandle = NewHandle((Long)DPTotal, userid(), (Word)(attrLocked | attrFixed | attrPage | attrBank), (Long)0);
|
||||
JOEY_CHECK_TOOL_ERROR("NewHandle Sound")
|
||||
|
@ -409,6 +414,7 @@ void jlUtilStartup(char *appTitle) {
|
|||
}
|
||||
MSStartUp(); // MIDI Synth
|
||||
JOEY_CHECK_TOOL_ERROR("MSStartUp")
|
||||
*/
|
||||
|
||||
// Try to load NinjaTrackerPlus from SYSTEM:TOOLS
|
||||
LoadOneTool(222, 0);
|
||||
|
|
|
@ -29,6 +29,12 @@
|
|||
#include "joey.h"
|
||||
|
||||
|
||||
#ifdef DMALLOC
|
||||
#define DMALLOC_FUNC_CHECK
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
|
||||
static SDL_Window *_jlWindow = NULL;
|
||||
static SDL_Renderer *_jlRenderer = NULL;
|
||||
static jlImgT *_jlBackingStore = NULL; // 4 bit representation
|
||||
|
@ -686,7 +692,9 @@ void jlUtilShutdown(void) {
|
|||
_jlControllerCount = 0;
|
||||
jlFree(_jlControllers);
|
||||
jlImgFree(_jlBackingStore);
|
||||
jlSoundMusicStop();
|
||||
//***TODO*** Sound effects stop?
|
||||
jlSoundModStop();
|
||||
jlSoundMidiStop();
|
||||
Mix_CloseAudio();
|
||||
Mix_Quit();
|
||||
SDL_FreeFormat(_jlPixelFormat);
|
||||
|
|
|
@ -37,6 +37,12 @@ segment "joeylib";
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef DMALLOC
|
||||
#define DMALLOC_FUNC_CHECK
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
|
||||
// Vector image file command bytes
|
||||
#define COMMAND_COLOR 1 // C
|
||||
#define COMMAND_CLEAR 2 // E
|
||||
|
|
|
@ -33,6 +33,12 @@ segment "testapp";
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef DMALLOC
|
||||
#define DMALLOC_FUNC_CHECK
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
|
||||
void help(jlSurfaceT source, jlStnT *stencil, jint16 sx, jint16 sy, jint16 tx, jint16 ty) {
|
||||
|
||||
int mo; // Mask offset
|
||||
|
|
Loading…
Add table
Reference in a new issue