tiagolr / dconsole

Haxe game-like console that provides runtime acess to methods, variables and more.
MIT License
169 stars 16 forks source link

Mac/OSX problems #27

Closed tiagolr closed 10 years ago

tiagolr commented 10 years ago

It seems that GameConsole does not work under Mac/OSX.

Unfortunately i don't have a Mac and cant test it.

Can anyone test it/ confirm it?

I have a guess that this may be causing the problem:

if (font == null) {
    font = "Consolas";
}

inside

GCInterface l:83 GCInterface l:96 GCMonitor l:82 GCProfiler l:89

Anyway the condition should be changed to something like (font == null && SYS.system == "windows")

Hopefully that solves it.

robertshady commented 10 years ago

That seems to have fixed the problem for Mac targets, the actual line of code turned out to be:

if (font == null && Sys.systemName() == "windows") {

(Although I'm not sure if it should be "windows" or "Windows")...

BUT - Now Flash & HTML5 dont work, it says "Accessing this field requires a system platform"...

Thanks!

tiagolr commented 10 years ago

Great, keeping this open until that is added (tomorrow probably)

robertshady commented 10 years ago

Ok, what seems to work better is this:

if (flash || html5)

            if (font == null) {

else

            if (font == null && Sys.systemName() == "Windows") {

end

                    font = "Consolas";
            }

That way it reverts to the original behavior for flash & html targets, otherwise they don't work because only native desktops have the Sys.systemName command...

tiagolr commented 10 years ago

nice

tiagolr commented 10 years ago

Ok fix submitted, thanks alot