system/applicationStart event and Default.png

I hooked the system event and noticed that I no longer get an ‘applicationStart’ event when ‘Default.png’ is present in the simulator. It appears to work fine on the iphone. Is there a way for code to determine if it is running in the simulator or not?

e.g.

if runningInSimulator then
handleSystem{type=‘applicationStart’} – simulate event if running in simulator
end

[import]uid: 1813 topic_id: 641 reply_id: 300641[/import]

A work around is to create a file in your Documents directory on the mac and detect it at start up. For example:

local f = io.open(system.pathForFile(‘inCoronaSim’,system.DocumentsDirectory),‘r’)
runningInSimulator = f ~= nil
if f then f:close() end
[import]uid: 1813 topic_id: 641 reply_id: 1509[/import]