Skip to content

Commit

Permalink
Formatting changes to prepare for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb committed Oct 21, 2024
1 parent 7d2a7a8 commit ce6ac2c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/b2/BeebThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ class BeebThread {
private:
};
#endif // B2_LIBRETRO_CORE

// Wake thread up when emulator is being resumed. The thread could
// have gone to sleep.
class DebugWakeUpMessage : public Message {
Expand Down
4 changes: 4 additions & 0 deletions src/b2/DirectDiscImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

#ifndef B2_LIBRETRO_CORE
LOG_EXTERN(OUTPUT);
#endif // B2_LIBRETRO_CORE

const std::string DirectDiscImage::LOAD_METHOD_DIRECT = "direct";

//////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -102,6 +104,7 @@ std::string DirectDiscImage::GetDescription() const {

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

#ifndef B2_LIBRETRO_CORE
// TODO - basically the same as MemoryDiscImage.
void DirectDiscImage::AddFileDialogFilter(FileDialog *fd) const {
Expand All @@ -111,6 +114,7 @@ void DirectDiscImage::AddFileDialogFilter(FileDialog *fd) const {
}
}
#endif

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

Expand Down
4 changes: 4 additions & 0 deletions src/b2/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

#ifndef B2_LIBRETRO_CORE
void DumpRendererInfo(Log *log, const SDL_RendererInfo *info) {
LogIndenter indent(log);
Expand All @@ -40,6 +41,7 @@ void SetRenderScaleQualityHint(bool filter) {
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, filter ? "linear" : "nearest");
}
#endif // B2_LIBRETRO_CORE

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -214,6 +216,7 @@ void GetThousandsString(char *str, uint64_t value) {

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

#ifndef B2_LIBRETRO_CORE
void SDL_Deleter::operator()(SDL_Window *w) const {
SDL_DestroyWindow(w);
Expand Down Expand Up @@ -301,6 +304,7 @@ SDL_PixelFormat *ClonePixelFormat(const SDL_PixelFormat *pixel_format) {
return SDL_AllocFormat(pixel_format->format);
}
#endif // B2_LIBRETRO_CORE

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

Expand Down
1 change: 1 addition & 0 deletions src/beeb/include/beeb/DiscImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class DiscImage : public std::enable_shared_from_this<DiscImage> {
#ifndef B2_LIBRETRO_CORE
virtual void AddFileDialogFilter(FileDialog *fd) const = 0;
#endif

// Save a copy of this disc image to the given file. If
// successful, returns a clone with the new name and whatever load
// method indicates a file.
Expand Down
1 change: 1 addition & 0 deletions src/beeb/include/beeb/DiscInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ struct DiscInterfaceDef {
// This disc interface is used for the B+ and B+128.
extern const DiscInterfaceDef DISC_INTERFACE_ACORN_1770;
#ifdef B2_LIBRETRO_CORE
// Disc interface definitions are used directly by the libretro core
extern const DiscInterfaceDef DISC_INTERFACE_WATFORD_DDB2;
extern const DiscInterfaceDef DISC_INTERFACE_WATFORD_DDB3;
extern const DiscInterfaceDef DISC_INTERFACE_OPUS;
Expand Down

0 comments on commit ce6ac2c

Please sign in to comment.