Changeset 591
- Timestamp:
- 11/06/11 03:36:56 (7 months ago)
- Files:
-
- branches/Derelict2/DerelictAL/derelict/openal/al.d (modified) (1 diff)
- branches/Derelict2/DerelictAllegro/derelict/allegro/acodec.d (modified) (1 diff)
- branches/Derelict2/DerelictAllegro/derelict/allegro/allegro.d (modified) (2 diffs)
- branches/Derelict2/DerelictAllegro/derelict/allegro/audio.d (modified) (1 diff)
- branches/Derelict2/DerelictAllegro/derelict/allegro/font.d (modified) (1 diff)
- branches/Derelict2/DerelictAllegro/derelict/allegro/image.d (modified) (1 diff)
- branches/Derelict2/DerelictFMOD/derelict/fmod/fmodex.d (modified) (1 diff)
- branches/Derelict2/DerelictFT/derelict/freetype/ft.d (modified) (1 diff)
- branches/Derelict2/DerelictGL/derelict/opengl/gl.d (modified) (1 diff)
- branches/Derelict2/DerelictGL/derelict/opengl/glu.d (modified) (1 diff)
- branches/Derelict2/DerelictIL/derelict/devil/il.d (modified) (1 diff)
- branches/Derelict2/DerelictIL/derelict/devil/ilu.d (modified) (1 diff)
- branches/Derelict2/DerelictIL/derelict/devil/ilut.d (modified) (1 diff)
- branches/Derelict2/DerelictODE/derelict/ode/ode.d (modified) (1 diff)
- branches/Derelict2/DerelictOgg/derelict/ogg/ogg.d (modified) (1 diff)
- branches/Derelict2/DerelictOgg/derelict/ogg/vorbis.d (modified) (1 diff)
- branches/Derelict2/DerelictOgg/derelict/ogg/vorbisenc.d (modified) (1 diff)
- branches/Derelict2/DerelictOgg/derelict/ogg/vorbisfile.d (modified) (1 diff)
- branches/Derelict2/DerelictPA/derelict/portaudio/pa.d (modified) (3 diffs)
- branches/Derelict2/DerelictSDL/derelict/sdl/image.d (modified) (1 diff)
- branches/Derelict2/DerelictSDL/derelict/sdl/mixer.d (modified) (1 diff)
- branches/Derelict2/DerelictSDL/derelict/sdl/net.d (modified) (1 diff)
- branches/Derelict2/DerelictSDL/derelict/sdl/sdl.d (modified) (1 diff)
- branches/Derelict2/DerelictSDL/derelict/sdl/ttf.d (modified) (1 diff)
- branches/Derelict2/DerelictSFML/derelict/sfml/audio.d (modified) (1 diff)
- branches/Derelict2/DerelictSFML/derelict/sfml/graphics.d (modified) (1 diff)
- branches/Derelict2/DerelictSFML/derelict/sfml/network.d (modified) (1 diff)
- branches/Derelict2/DerelictSFML/derelict/sfml/system.d (modified) (1 diff)
- branches/Derelict2/DerelictSFML/derelict/sfml/window.d (modified) (1 diff)
- branches/Derelict2/DerelictUtil/derelict/util/loader.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Derelict2/DerelictAL/derelict/openal/al.d
r479 r591 166 166 static this() 167 167 { 168 DerelictAL = new DerelictALLoader();168 DerelictAL = new DerelictALLoader(); 169 169 } 170 170 171 171 static ~this() 172 172 { 173 DerelictAL.unload(); 173 if(SharedLibLoader.isAutoUnloadEnabled()) 174 DerelictAL.unload(); 174 175 } branches/Derelict2/DerelictAllegro/derelict/allegro/acodec.d
r574 r591 76 76 static ~this() 77 77 { 78 DerelictAllegroACodec.unload(); 78 if(SharedLibLoader.isAutoUnloadEnabled()) 79 DerelictAllegroACodec.unload(); 79 80 } branches/Derelict2/DerelictAllegro/derelict/allegro/allegro.d
r551 r591 376 376 bindFunc(cast(void**)&al_invert_transform, "al_invert_transform"); 377 377 bindFunc(cast(void**)&al_check_inverse, "al_check_inverse"); 378 378 379 379 bindFunc(cast(void**)&al_ustr_new, "al_ustr_new"); 380 380 bindFunc(cast(void**)&al_ustr_new_from_buffer, "al_ustr_new_from_buffer"); … … 457 457 static ~this() 458 458 { 459 DerelictAllegro.unload(); 459 if(SharedLibLoader.isAutoUnloadEnabled()) 460 DerelictAllegro.unload(); 460 461 } branches/Derelict2/DerelictAllegro/derelict/allegro/audio.d
r574 r591 492 492 static ~this() 493 493 { 494 DerelictAllegroAudio.unload(); 495 } 494 if(SharedLibLoader.isAutoUnloadEnabled()) 495 DerelictAllegroAudio.unload(); 496 } branches/Derelict2/DerelictAllegro/derelict/allegro/font.d
r574 r591 164 164 static ~this() 165 165 { 166 DerelictAllegroFont.unload(); 166 if(SharedLibLoader.isAutoUnloadEnabled()) 167 DerelictAllegroFont.unload(); 167 168 } branches/Derelict2/DerelictAllegro/derelict/allegro/image.d
r574 r591 79 79 static ~this() 80 80 { 81 DerelictAllegroImage.unload(); 81 if(SharedLibLoader.isAutoUnloadEnabled()) 82 DerelictAllegroImage.unload(); 82 83 } branches/Derelict2/DerelictFMOD/derelict/fmod/fmodex.d
r478 r591 457 457 static ~this() 458 458 { 459 DerelictFMODEX.unload(); 459 if(SharedLibLoader.isAutoUnloadEnabled()) 460 DerelictFMODEX.unload(); 460 461 } branches/Derelict2/DerelictFT/derelict/freetype/ft.d
r560 r591 358 358 static ~this() 359 359 { 360 DerelictFT.unload(); 361 } 360 if(SharedLibLoader.isAutoUnloadEnabled()) 361 DerelictFT.unload(); 362 } branches/Derelict2/DerelictGL/derelict/opengl/gl.d
r589 r591 1038 1038 static ~this() 1039 1039 { 1040 DerelictGL.unload(); 1040 if(SharedLibLoader.isAutoUnloadEnabled()) 1041 DerelictGL.unload(); 1041 1042 } branches/Derelict2/DerelictGL/derelict/opengl/glu.d
r470 r591 119 119 static ~this() 120 120 { 121 DerelictGLU.unload(); 121 if(SharedLibLoader.isAutoUnloadEnabled()) 122 DerelictGLU.unload(); 122 123 } branches/Derelict2/DerelictIL/derelict/devil/il.d
r409 r591 156 156 static ~this() 157 157 { 158 DerelictIL.unload(); 158 if(SharedLibLoader.isAutoUnloadEnabled()) 159 DerelictIL.unload(); 159 160 } branches/Derelict2/DerelictIL/derelict/devil/ilu.d
r409 r591 113 113 static ~this() 114 114 { 115 DerelictILU.unload(); 115 if(SharedLibLoader.isAutoUnloadEnabled()) 116 DerelictILU.unload(); 116 117 } branches/Derelict2/DerelictIL/derelict/devil/ilut.d
r411 r591 114 114 static ~this() 115 115 { 116 DerelictILUT.unload(); 116 if(SharedLibLoader.isAutoUnloadEnabled()) 117 DerelictILUT.unload(); 117 118 } branches/Derelict2/DerelictODE/derelict/ode/ode.d
r486 r591 632 632 static ~this() 633 633 { 634 DerelictODE.unload(); 634 if(SharedLibLoader.isAutoUnloadEnabled()) 635 DerelictODE.unload(); 635 636 } branches/Derelict2/DerelictOgg/derelict/ogg/ogg.d
r561 r591 142 142 static ~this() 143 143 { 144 DerelictOgg.unload(); 144 if(SharedLibLoader.isAutoUnloadEnabled()) 145 DerelictOgg.unload(); 145 146 } branches/Derelict2/DerelictOgg/derelict/ogg/vorbis.d
r561 r591 106 106 static ~this() 107 107 { 108 DerelictVorbis.unload(); 108 if(SharedLibLoader.isAutoUnloadEnabled()) 109 DerelictVorbis.unload(); 109 110 } branches/Derelict2/DerelictOgg/derelict/ogg/vorbisenc.d
r561 r591 73 73 static ~this() 74 74 { 75 DerelictVorbisEnc.unload(); 75 if(SharedLibLoader.isAutoUnloadEnabled()) 76 DerelictVorbisEnc.unload(); 76 77 } branches/Derelict2/DerelictOgg/derelict/ogg/vorbisfile.d
r561 r591 110 110 static ~this() 111 111 { 112 DerelictVorbisFile.unload(); 112 if(SharedLibLoader.isAutoUnloadEnabled()) 113 DerelictVorbisFile.unload(); 113 114 } branches/Derelict2/DerelictPA/derelict/portaudio/pa.d
r484 r591 30 30 public 31 31 { 32 import derelict.portaudio.patypes;33 import derelict.portaudio.pafuncs;32 import derelict.portaudio.patypes; 33 import derelict.portaudio.pafuncs; 34 34 } 35 35 36 36 private 37 37 { 38 import derelict.util.loader;38 import derelict.util.loader; 39 39 } 40 40 … … 42 42 { 43 43 public: 44 this()45 {46 super(47 "PortAudio.dll",48 "portaudio.so,libportaudio.so",49 ""50 );51 }52 44 this() 45 { 46 super( 47 "PortAudio.dll", 48 "portaudio.so,libportaudio.so", 49 "" 50 ); 51 } 52 53 53 protected: 54 override void loadSymbols()55 {56 bindFunc(cast(void**)&Pa_GetVersion, "Pa_GetVersion");57 bindFunc(cast(void**)&Pa_GetVersionText, "Pa_GetVersionText");58 bindFunc(cast(void**)&Pa_GetErrorText, "Pa_GetErrorText");59 bindFunc(cast(void**)&Pa_Initialize, "Pa_Initialize");60 bindFunc(cast(void**)&Pa_Terminate, "Pa_Terminate");61 bindFunc(cast(void**)&Pa_GetDefaultHostApi, "Pa_GetDefaultHostApi");62 bindFunc(cast(void**)&Pa_GetHostApiInfo, "Pa_GetHostApiInfo");63 bindFunc(cast(void**)&Pa_HostApiTypeIdToHostApiIndex, "Pa_HostApiTypeIdToHostApiIndex");64 bindFunc(cast(void**)&Pa_HostApiDeviceIndexToDeviceIndex, "Pa_HostApiDeviceIndexToDeviceIndex");65 bindFunc(cast(void**)&Pa_GetLastHostErrorInfo, "Pa_GetLastHostErrorInfo");66 bindFunc(cast(void**)&Pa_GetDeviceCount, "Pa_GetDeviceCount");67 68 bindFunc(cast(void**)&Pa_GetDefaultInputDevice, "Pa_GetDefaultInputDevice");69 bindFunc(cast(void**)&Pa_GetDefaultOutputDevice, "Pa_GetDefaultOutputDevice");70 bindFunc(cast(void**)&Pa_GetDeviceInfo, "Pa_GetDeviceInfo");71 bindFunc(cast(void**)&Pa_IsFormatSupported, "Pa_IsFormatSupported");72 bindFunc(cast(void**)&Pa_OpenStream, "Pa_OpenStream");73 bindFunc(cast(void**)&Pa_OpenDefaultStream, "Pa_OpenDefaultStream");74 bindFunc(cast(void**)&Pa_CloseStream, "Pa_CloseStream");75 bindFunc(cast(void**)&Pa_SetStreamFinishedCallback, "Pa_SetStreamFinishedCallback");76 bindFunc(cast(void**)&Pa_StartStream, "Pa_StartStream");77 bindFunc(cast(void**)&Pa_StopStream, "Pa_StopStream");78 bindFunc(cast(void**)&Pa_AbortStream, "Pa_AbortStream");79 bindFunc(cast(void**)&Pa_IsStreamStopped, "Pa_IsStreamStopped");80 bindFunc(cast(void**)&Pa_IsStreamActive, "Pa_IsStreamActive");81 bindFunc(cast(void**)&Pa_GetStreamInfo, "Pa_GetStreamInfo");82 bindFunc(cast(void**)&Pa_GetStreamTime, "Pa_GetStreamTime");83 bindFunc(cast(void**)&Pa_GetStreamCpuLoad, "Pa_GetStreamCpuLoad");84 bindFunc(cast(void**)&Pa_ReadStream, "Pa_ReadStream");85 bindFunc(cast(void**)&Pa_WriteStream, "Pa_WriteStream");86 bindFunc(cast(void**)&Pa_GetStreamReadAvailable, "Pa_GetStreamReadAvailable");87 bindFunc(cast(void**)&Pa_GetStreamWriteAvailable, "Pa_GetStreamWriteAvailable");88 bindFunc(cast(void**)&Pa_GetSampleSize, "Pa_GetSampleSize");89 bindFunc(cast(void**)&Pa_Sleep, "Pa_Sleep");90 }54 override void loadSymbols() 55 { 56 bindFunc(cast(void**)&Pa_GetVersion, "Pa_GetVersion"); 57 bindFunc(cast(void**)&Pa_GetVersionText, "Pa_GetVersionText"); 58 bindFunc(cast(void**)&Pa_GetErrorText, "Pa_GetErrorText"); 59 bindFunc(cast(void**)&Pa_Initialize, "Pa_Initialize"); 60 bindFunc(cast(void**)&Pa_Terminate, "Pa_Terminate"); 61 bindFunc(cast(void**)&Pa_GetDefaultHostApi, "Pa_GetDefaultHostApi"); 62 bindFunc(cast(void**)&Pa_GetHostApiInfo, "Pa_GetHostApiInfo"); 63 bindFunc(cast(void**)&Pa_HostApiTypeIdToHostApiIndex, "Pa_HostApiTypeIdToHostApiIndex"); 64 bindFunc(cast(void**)&Pa_HostApiDeviceIndexToDeviceIndex, "Pa_HostApiDeviceIndexToDeviceIndex"); 65 bindFunc(cast(void**)&Pa_GetLastHostErrorInfo, "Pa_GetLastHostErrorInfo"); 66 bindFunc(cast(void**)&Pa_GetDeviceCount, "Pa_GetDeviceCount"); 67 68 bindFunc(cast(void**)&Pa_GetDefaultInputDevice, "Pa_GetDefaultInputDevice"); 69 bindFunc(cast(void**)&Pa_GetDefaultOutputDevice, "Pa_GetDefaultOutputDevice"); 70 bindFunc(cast(void**)&Pa_GetDeviceInfo, "Pa_GetDeviceInfo"); 71 bindFunc(cast(void**)&Pa_IsFormatSupported, "Pa_IsFormatSupported"); 72 bindFunc(cast(void**)&Pa_OpenStream, "Pa_OpenStream"); 73 bindFunc(cast(void**)&Pa_OpenDefaultStream, "Pa_OpenDefaultStream"); 74 bindFunc(cast(void**)&Pa_CloseStream, "Pa_CloseStream"); 75 bindFunc(cast(void**)&Pa_SetStreamFinishedCallback, "Pa_SetStreamFinishedCallback"); 76 bindFunc(cast(void**)&Pa_StartStream, "Pa_StartStream"); 77 bindFunc(cast(void**)&Pa_StopStream, "Pa_StopStream"); 78 bindFunc(cast(void**)&Pa_AbortStream, "Pa_AbortStream"); 79 bindFunc(cast(void**)&Pa_IsStreamStopped, "Pa_IsStreamStopped"); 80 bindFunc(cast(void**)&Pa_IsStreamActive, "Pa_IsStreamActive"); 81 bindFunc(cast(void**)&Pa_GetStreamInfo, "Pa_GetStreamInfo"); 82 bindFunc(cast(void**)&Pa_GetStreamTime, "Pa_GetStreamTime"); 83 bindFunc(cast(void**)&Pa_GetStreamCpuLoad, "Pa_GetStreamCpuLoad"); 84 bindFunc(cast(void**)&Pa_ReadStream, "Pa_ReadStream"); 85 bindFunc(cast(void**)&Pa_WriteStream, "Pa_WriteStream"); 86 bindFunc(cast(void**)&Pa_GetStreamReadAvailable, "Pa_GetStreamReadAvailable"); 87 bindFunc(cast(void**)&Pa_GetStreamWriteAvailable, "Pa_GetStreamWriteAvailable"); 88 bindFunc(cast(void**)&Pa_GetSampleSize, "Pa_GetSampleSize"); 89 bindFunc(cast(void**)&Pa_Sleep, "Pa_Sleep"); 90 } 91 91 } 92 92 … … 95 95 static this() 96 96 { 97 DerelictPA = new DerelictPALoader();97 DerelictPA = new DerelictPALoader(); 98 98 } 99 99 100 100 static ~this() 101 101 { 102 DerelictPA.unload(); 102 if(SharedLibLoader.isAutoUnloadEnabled()) 103 DerelictPA.unload(); 103 104 } branches/Derelict2/DerelictSDL/derelict/sdl/image.d
r569 r591 207 207 static ~this() 208 208 { 209 DerelictSDLImage.unload(); 210 } 209 if(SharedLibLoader.isAutoUnloadEnabled()) 210 DerelictSDLImage.unload(); 211 } branches/Derelict2/DerelictSDL/derelict/sdl/mixer.d
r570 r591 388 388 static ~this() 389 389 { 390 DerelictSDLMixer.unload(); 391 } 390 if(SharedLibLoader.isAutoUnloadEnabled()) 391 DerelictSDLMixer.unload(); 392 } branches/Derelict2/DerelictSDL/derelict/sdl/net.d
r571 r591 278 278 static ~this() 279 279 { 280 DerelictSDLNet.unload(); 281 } 280 if(SharedLibLoader.isAutoUnloadEnabled()) 281 DerelictSDLNet.unload(); 282 } branches/Derelict2/DerelictSDL/derelict/sdl/sdl.d
r470 r591 280 280 static ~this() 281 281 { 282 DerelictSDL.unload(); 283 } 282 if(SharedLibLoader.isAutoUnloadEnabled()) 283 DerelictSDL.unload(); 284 } branches/Derelict2/DerelictSDL/derelict/sdl/ttf.d
r572 r591 255 255 static ~this() 256 256 { 257 DerelictSDLttf.unload(); 258 } 257 if(SharedLibLoader.isAutoUnloadEnabled()) 258 DerelictSDLttf.unload(); 259 } branches/Derelict2/DerelictSFML/derelict/sfml/audio.d
r526 r591 179 179 static ~this() 180 180 { 181 DerelictSFMLAudio.unload(); 181 if(SharedLibLoader.isAutoUnloadEnabled()) 182 DerelictSFMLAudio.unload(); 182 183 } branches/Derelict2/DerelictSFML/derelict/sfml/graphics.d
r526 r591 287 287 static ~this() 288 288 { 289 DerelictSFMLGraphics.unload(); 290 } 289 if(SharedLibLoader.isAutoUnloadEnabled()) 290 DerelictSFMLGraphics.unload(); 291 } branches/Derelict2/DerelictSFML/derelict/sfml/network.d
r526 r591 201 201 static ~this() 202 202 { 203 DerelictSFMLNetwork.unload(); 204 } 203 if(SharedLibLoader.isAutoUnloadEnabled()) 204 DerelictSFMLNetwork.unload(); 205 } branches/Derelict2/DerelictSFML/derelict/sfml/system.d
r526 r591 93 93 static ~this() 94 94 { 95 DerelictSFMLSystem.unload(); 95 if(SharedLibLoader.isAutoUnloadEnabled()) 96 DerelictSFMLSystem.unload(); 96 97 } branches/Derelict2/DerelictSFML/derelict/sfml/window.d
r526 r591 109 109 static ~this() 110 110 { 111 DerelictSFMLWindow.unload(); 111 if(SharedLibLoader.isAutoUnloadEnabled()) 112 DerelictSFMLWindow.unload(); 112 113 } branches/Derelict2/DerelictUtil/derelict/util/loader.d
r470 r591 59 59 } 60 60 61 static void disableAutoUnload() 62 { 63 _manualUnload = true; 64 } 65 66 static bool isAutoUnloadEnabled() 67 { 68 return (_manualUnload == false); 69 } 70 61 71 void load() 62 72 { … … 113 123 114 124 private: 125 static bool _manualUnload; 115 126 string _libNames; 116 127 SharedLib _lib;
