Stewmath / GameYob

[Super] Gameboy [Color] emulator for the Nintendo [3]DS
MIT License
270 stars 59 forks source link

Error compiling #163

Open stmaccarelli opened 6 years ago

stmaccarelli commented 6 years ago

compiling from osx make I got this error:

GameYob-master/platform/ds/arm7/source/main.c:148:14: error: 'PM_DSI_HACK' undeclared (first use in this function)
         case PM_DSI_HACK:

it appears in this function:


// Custom version of a handler in libnds.
// Tells the arm9 we're entering sleep mode to prevent crashes relating to audio 
// code. It's a weird hack but it seems to work.
void powerHandler(u32 value, void* user_data) {
Stewmath commented 6 years ago

Last I remember, the master branch doesn't compile with the latest devkitarm, but the v0.5-hotfix branch might (what the more recent releases are based on).

stmaccarelli commented 6 years ago

Oh ok, thanks. v0.5-hotfix is the branch GameYob v0.5.2 comes from?

On Fri, 16 Mar 2018 at 02:57, Drenn1 notifications@github.com wrote:

Last I remember, the master branch doesn't compile with the latest devkitarm, but the v0.5-hotfix branch might (what the more recent releases are based on).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Drenn1/GameYob/issues/163#issuecomment-373579409, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVGEfAopCGmsC7l2y0U5afEpFpplHVgks5texwCgaJpZM4Sr-T0 .

--

Stefano MaccarelliArt director, designer, creative coder.

Via San Donato, 20 – Torino, Italy www.stefano-maccarelli.com

www.linkedin.com/in/stmaccarelli http://www.linkedin.com/in/stmaccarelli (+39) 340 6247854 st.maccarelli@gmail.com

ParzivalWolfram commented 6 years ago

You can remove that if statement from that file and everything works fine (except on Windows, where some dirty directory hacks must be done for compiling to work.)