http://ykhwong.x-y.net thanxs for the info David

That's strange.SuavePrince wrote:and other this dosbox that David show is almost perfect,except that lost sound...
When save state,lost soundDavid wrote:That's strange.SuavePrince wrote:and other this dosbox that David show is almost perfect,except that lost sound...
That unofficial DOSBox *does* have sound for me. In fact, it even supports the MT-32 better than the official DOSBox!
---
Someone opened this issue: https://github.com/NagyD/SDLPoP/issues/59
I don't get any warnings myself. My hunch is that this occurs because of a difference between C and C++, namely that C allows tentative definitions, while C++ doesn't (did you use gcc, or g++ to compile?)digi@os2.snc.ru wrote: Some things looks strange for me:
1. Not all variables in data.h have prefix "extern", as result I have compiler warnings (gcc 4.9.2) and all that variables are duplicates for each module. I have add "extern" prefixes.
It is not uninitialized, though: because timer_stopped has static storage duration (it being a global variable), it is initialized to {0,0} by default. However, it is strange that this would lead to a freeze...digi@os2.snc.ru wrote:2. Array timer_stopped (data.h) not initialized by any values, as result I have black screen after first screen ("fixes and enhancements, Y/N"). I have replace:
int timer_stopped[2];
with
extern int timer_stopped[2] INIT( = { 1, 1 } );
Good to hear that, and thank you for your feedback!digi@os2.snc.ru wrote:After this changes all work fine for me.
OS/2 binaries: http://hobbes.nmsu.edu/h-search.php?key=sdlpop
If I select "Compile file as C++" at data.c then I get errors like this:Falcury wrote: My hunch is that this occurs because of a difference between C and C++, namely that C allows tentative definitions, while C++ doesn't
Code: Select all
data.h:577:6: error: redefinition of 'word last_loose_sound'
Code: Select all
c:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include/fvec.h:178:62: error: conflicting declaration of C function 'F32vec1 operator&(const F32vec1&, const F32vec1&)'
Code: Select all
int timer_stopped[2] = {1,1};
Yes, and I moved the old mac installation instructions to the original readme file, with more data.StaticReturn wrote:To those that are working on SDLPoP: I was just checking the SDLPoP source on GitHub and noticed that my old MAC_CHANGES.txt file is present. Please feel free to remove it or any other cruft that is left behind from my amateurish attempt to get Prince of Persia working on OS X.
David wrote: Problem!
With SDL 2.0.4, SDLPoP crashes when I resize the window in any way. This includes entering/exiting fullscreen mode.
The crash happens in the SDL_RenderClear() call.
If I comment that out then it crashes in SDL_RenderCopy().
If I also comment that out, then there is no crash (and no display either).
Apoplexy does not crash with the same DLL.
Update:
There are two versions of SDL2.dll in the SDL2-devel-2.0.4-mingw.tar.gz archive.
SDL2-2.0.4\i686-w64-mingw32\bin\SDL2.dll --> This crashes.
SDL2-2.0.4\lib\x86\SDL2.dll --> This does not crash. But this is version 2.0.2 !
I compiled a version of the v2.0.4 SDL2.dll with this patch applied.acd2001 wrote:You must recompile sdl2 v2.04 with this patch.
I have the same problem before...
diff -Naur src/render/direct3d/SDL_render_d3d.c src/render/direct3d/SDL_render_d3d.c
--- src/render/direct3d/SDL_render_d3d.c 2016-01-02 19:56:31 +0000
+++ src/render/direct3d/SDL_render_d3d.c 2016-01-13 22:24:01 +0000
@@ -1003,6 +1003,10 @@
{
D3D_RenderData *data = (D3D_RenderData *)renderer->driverdata;
D3D_TextureData *texturedata = (D3D_TextureData *)texture->driverdata;
+
+ if (!texturedata) {
+ return 0;
+ }
if (D3D_RecreateTextureRep(data->device, &texturedata->texture, texture->format, texture->w, texture->h) < 0) {
return -1;
https://bugzilla.libsdl.org/attachment. ... ction=edit
Thank you, it works perfectly!Falcury wrote:I compiled a version of the v2.0.4 SDL2.dll with this patch applied.
Code: Select all
enum colorids {
color_0_black = 0,
color_1_darkblue = 1, // "blue"
color_2_darkgreen = 2, // "green"
color_3_turquoise = 3, // "cyan"
color_4_darkred = 4, // "red"
color_5_purple = 5, // "magenta"
color_6_gold = 6, // "brown"
color_7_grey = 7, // "light grey"
color_8_darkgrey = 8, // "dark grey"
color_9_blue = 9, // "bright blue"
color_10_green = 10, // "bright green"
color_11_lightblue = 11, // "bright cyan"
color_12_red = 12, // "bright red"
color_13_violet = 13, // "bright magenta"
color_14_yellow = 14, // "bright yellow"
color_15_white = 15, // "bright white"
};