View Single Post
Old 13 August 2017, 02:11   #153
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by emufan View Post
one build is in the zone, running on default a1200 030/882 2 chip / 32 z3 with P96, and uae III card. wb/kick 3.0
using 3.5.0.0 / 3.4.0.0 release.

#1) I made some progress with adding printf on some occasions.
it wants the icon.bmp, does sdl support bmp on any platform?
Frame.cpp: apple_icon = SDL_LoadBMP("icon.bmp");

#2) very cool progress, i could track down the crash to reading in the linapple.conf file,.
so i disabled Applewin.cpp: LoadConfiguration(); function call
and we now have a black window, without any crash, *heureka* anyone ?
Code:
initialized SDL: 
Timer has been initted!
FrameCreateWindow: 
Screen size is 640x480
FrameCreateWindow2: 
SDL_MIX_MAXVOLUME=128
Freq=44100,format=36880,channels=2,silence=0
samples=4096,size=16384,bufferSize=32768
SDL_SetError: Passed a NULL mutex
SDL_SetError: Passed a NULL mutex
SDL_SetError: Passed a NULL mutex
SDL_SetError: Passed a NULL mutex
g_bHD_Enabled = 0
SDL_SetError: Couldn't open splash.bmp
Video: splash.bmp was not loaded
SDL_SetError: Couldn't open charset40.bmp
Video: Apple text is not unavailable: charset40.bmp was not loaded
SetColors(g_hDeviceBitmap)=1
SetColors(g_origscreen)=1
SDL_SetError: Couldn't open font.bmp
SetColors(g_hSourceBitmap)=1
In DrawFrameWindow. g_nAppMode == 0
SDL_SetError: Couldn't open font.bmp
Font file was not loaded.
Out of DrawFrameWindow!

#3) *awesome*
zoned: linapple-rtg-WIP.working.zip
build for window mode
in the shell type:
setenv SDL_DEBUG 1
linapple-RTG.exe

it does need some romfiles, have to look which: Memory.cpp
Apple2.rom - size 20480 (!?)
Apple2_Plus.rom - size 20480 (!?)
Apple2e.rom - size 32768 (!?)
Apple2e_Enhanced.rom - size 32768 (!?)


#4) so we need to check what is wrong with reading linapple.conf file.
using SHIFT+F8 - write settings - gives a guru.
so something doesnt fit the amiga file handling procedure in linapple source.
I can't remember if that code I uploaded creates a mutex or not, does it have this?

https://wiki.libsdl.org/SDL_CreateMutex

Reading the configuration file problem may be an endian issue, you might need to byte swap.
NovaCoder is offline  
 
Page generated in 0.04329 seconds with 11 queries