-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds C bridges to LUS C++ code to their own files. Additionally organ…
…izes headers for more organic includes. (#29) * Removes unused extern definition for __osMaxControllers in SDLController.cpp * Moves libultraship functions to their own files. * Headers are now moved to include and adds bridge functions for basic LUS functionality. * Updates PulseAudioPlayer to have our naming convenstions and runs clang-format. * Updates clang-tidy headers. * Moves GameOverlay to menu directory. * Fixing naming conventions in PulseAudioPlayer. * Fixes clang-tidy errors in ResourceMgr. * Fixes include of GameOverlay.h * GameOverlay screen dimensions are now protected access. * Fixes gbi.h includes. * AudioPlayer.doInit -> AudioPlayer.DoInit * Excluding os.h from clang-tidy * Include stddef.h in libultraship.h for size_t * Includes studded.h in AudioPlayer.h for size_t * Includes stddef.h in audioplayerbridge.h for size_t * Removes unnecessary includes in LUS.h * Libultra types now includes stddef which brings a long size_t for all platforms.
- Loading branch information
Showing
75 changed files
with
817 additions
and
1,018 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef _BRIDGE_H_ | ||
#define _BRIDGE_H_ | ||
|
||
#include "core/bridge/resourcebridge.h" | ||
#include "core/bridge/audioplayerbridge.h" | ||
#include "core/bridge/controldeckbridge.h" | ||
#include "core/bridge/windowbridge.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef _ULTRA64_H_ | ||
#define _ULTRA64_H_ | ||
|
||
#include "libultra/abi.h" | ||
#include "libultra/controller.h" | ||
#include "libultra/convert.h" | ||
#include "libultra/exception.h" | ||
#include "libultra/gbi.h" | ||
#include "libultra/gs2dex.h" | ||
#include "libultra/gu.h" | ||
#include "libultra/hardware.h" | ||
#include "libultra/internal.h" | ||
#include "libultra/interrupt.h" | ||
#include "libultra/mbi.h" | ||
#include "libultra/message.h" | ||
#include "libultra/motor.h" | ||
#include "libultra/pfs.h" | ||
#include "libultra/pi.h" | ||
#include "libultra/printf.h" | ||
#include "libultra/r4300.h" | ||
#include "libultra/rcp.h" | ||
#include "libultra/rdp.h" | ||
#include "libultra/rsp.h" | ||
#include "libultra/sptask.h" | ||
#include "libultra/thread.h" | ||
#include "libultra/time.h" | ||
#include "libultra/types.h" | ||
#include "libultra/vi.h" | ||
|
||
#endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef _LIBULTRASHIP_H_ | ||
#define _LIBULTRASHIP_H_ | ||
|
||
#include "libultra.h" | ||
#include "bridge.h" | ||
#include "color.h" | ||
#include "misc/Cvar.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "AudioPlayer.h" | ||
|
||
namespace Ship { | ||
AudioPlayer::AudioPlayer() : mInitialized(false){}; | ||
|
||
bool AudioPlayer::Init(void) { | ||
mInitialized = DoInit(); | ||
return IsInitialized(); | ||
} | ||
|
||
bool AudioPlayer::IsInitialized(void) { | ||
return mInitialized; | ||
} | ||
|
||
} // namespace Ship |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.