Skip to content

Commit

Permalink
feat: add icf flag
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 11, 2025
1 parent a5ae5da commit 4b6f16c
Show file tree
Hide file tree
Showing 2,914 changed files with 8,666 additions and 9,542 deletions.
1 change: 0 additions & 1 deletion docs/api/assets/doxygen-awesome-css
Submodule doxygen-awesome-css deleted from df83fb
1 change: 1 addition & 0 deletions src/mc/_HeaderOutputPredefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#define MCAPI __declspec(dllimport)
#define MCTAPI template<> MCAPI
#define MCFOLD MCAPI /*Identical COMDAT Folding*/

#include <algorithm> // STL general algorithms
#include <array> // STL array container
Expand Down
6 changes: 3 additions & 3 deletions src/mc/certificates/Certificate.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ class Certificate {

MCAPI int64 getNotBeforeDate() const;

MCAPI bool isSelfSigned() const;
MCFOLD bool isSelfSigned() const;

MCAPI bool isValid() const;
MCFOLD bool isValid() const;

MCAPI ::std::string toString() const;
MCFOLD ::std::string toString() const;

MCAPI bool validate(int64 currentTime, bool isSelfSigned, bool checkExpired);

Expand Down
2 changes: 1 addition & 1 deletion src/mc/certificates/CertificateSNIType.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ struct CertificateSNIType {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};
2 changes: 1 addition & 1 deletion src/mc/certificates/UnverifiedCertificate.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UnverifiedCertificate {

MCAPI ::std::string getIdentityPublicKey() const;

MCAPI ::std::string toString() const;
MCFOLD ::std::string toString() const;

MCAPI ::std::unique_ptr<::Certificate> verify(::std::vector<::std::string> const& trustedKeys) const;

Expand Down
2 changes: 1 addition & 1 deletion src/mc/client/gui/oreui/resources/AllowListPath.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AllowListPath {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
44 changes: 22 additions & 22 deletions src/mc/client/sound/NullSoundPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,53 +107,53 @@ class NullSoundPlayer : public ::SoundPlayerInterface {
public:
// virtual function thunks
// NOLINTBEGIN
MCAPI uint64 $play(::std::string const&, ::Vec3 const&, float, float);
MCFOLD uint64 $play(::std::string const&, ::Vec3 const&, float, float);

MCAPI uint64 $playUI(::std::string const&, float, float);
MCFOLD uint64 $playUI(::std::string const&, float, float);

MCAPI void $playMusic(::std::string const&, float, uint&);
MCFOLD void $playMusic(::std::string const&, float, uint&);

MCAPI void $playMusic(::std::string const&, float);
MCFOLD void $playMusic(::std::string const&, float);

MCAPI bool $isLoadingMusic() const;
MCFOLD bool $isLoadingMusic() const;

MCAPI bool $isPlayingMusicEvent(::std::string const&) const;
MCFOLD bool $isPlayingMusicEvent(::std::string const&) const;

MCAPI bool $isPlayingMusic(::Core::Path const&) const;
MCFOLD bool $isPlayingMusic(::Core::Path const&) const;

MCAPI ::Core::PathBuffer<::std::string> const $getCurrentlyPlayingMusicName();
MCFOLD ::Core::PathBuffer<::std::string> const $getCurrentlyPlayingMusicName();

MCAPI bool $getItem(::std::string const&, ::Core::Path const&, ::SoundItem&) const;
MCFOLD bool $getItem(::std::string const&, ::Core::Path const&, ::SoundItem&) const;

MCAPI void $fadeToStopMusic(float);
MCFOLD void $fadeToStopMusic(float);

MCAPI void $setMusicCommandVolumeMultiplier(float);
MCFOLD void $setMusicCommandVolumeMultiplier(float);

MCAPI void $stopMusic();
MCFOLD void $stopMusic();

MCAPI uint64 $registerLoop(::std::string const&, ::std::function<void(::LoopingSoundState&)>, float, float);

MCAPI void $unregisterLoop(uint64, bool);
MCFOLD void $unregisterLoop(uint64, bool);

MCAPI void $stop(::std::string const&);
MCFOLD void $stop(::std::string const&);

MCAPI void $stop(uint64);
MCFOLD void $stop(uint64);

MCAPI void $fadeOut(uint64, float);
MCFOLD void $fadeOut(uint64, float);

MCAPI void $stopAllSounds();
MCFOLD void $stopAllSounds();

MCAPI bool $isPlayingSound(uint64) const;
MCFOLD bool $isPlayingSound(uint64) const;

MCAPI bool $isPlayingSound(::Core::Path const&) const;
MCFOLD bool $isPlayingSound(::Core::Path const&) const;

MCAPI uint64 $playAttached(::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&);
MCFOLD uint64 $playAttached(::std::string const&, ::std::function<void(::SoundInstanceProperties&)>&&);

MCAPI void $stopAllDelayedSoundActions();
MCFOLD void $stopAllDelayedSoundActions();

MCAPI ::std::optional<::PlayingSoundAttributes> $tryGetPlayingSoundAttributes(uint64) const;

MCAPI ::std::optional<::LoopingSoundAttributes> $tryGetLoopingSoundAttributes(uint64) const;
MCFOLD ::std::optional<::LoopingSoundAttributes> $tryGetLoopingSoundAttributes(uint64) const;
// NOLINTEND

public:
Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/Block.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct Block {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/ChatMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct ChatMessage {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/CommandMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct CommandMessage {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/CommandRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct CommandRequest {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/EncryptionRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct EncryptionRequest {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/EncryptionResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct EncryptionResult {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/ErrorMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct ErrorMessage {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/EventMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct EventMessage {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
4 changes: 2 additions & 2 deletions src/mc/codebuilder/GameContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GameContext {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down Expand Up @@ -78,7 +78,7 @@ class GameContext {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/IClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class IClient : public ::Bedrock::EnableNonOwnerReferences {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND

public:
Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/IManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class IManager : public ::Bedrock::EnableNonOwnerReferences {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND

public:
Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/Item.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct Item {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/RequestHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct RequestHeader {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/utils/CodeBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MCAPI ::Json::Value createMobObject(int mobType, int variant, uchar color);

MCAPI ::Json::Value createMobObjectWithId(int id, int mobType, int variant);

MCAPI ::Json::Value createObject(::ItemStack const& item);
MCFOLD ::Json::Value createObject(::ItemStack const& item);

MCAPI ::Json::Value createObject(::ItemDescriptor const& item);

Expand Down
2 changes: 1 addition & 1 deletion src/mc/codebuilder/utils/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct Event {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/common/ActorUniqueID.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct ActorUniqueID {
public:
// member functions
// NOLINTBEGIN
MCAPI uint64 getHash() const;
MCFOLD uint64 getHash() const;
// NOLINTEND

public:
Expand Down
38 changes: 19 additions & 19 deletions src/mc/common/AppPlatformListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,43 +106,43 @@ class AppPlatformListener {
public:
// virtual function thunks
// NOLINTBEGIN
MCAPI void $onLowMemory();
MCFOLD void $onLowMemory();

MCAPI void $onAppPaused();
MCFOLD void $onAppPaused();

MCAPI void $onAppUnpaused();
MCFOLD void $onAppUnpaused();

MCAPI void $onAppPreSuspended();
MCFOLD void $onAppPreSuspended();

MCAPI void $onAppSuspended();
MCFOLD void $onAppSuspended();

MCAPI void $onAppResumed();
MCFOLD void $onAppResumed();

MCAPI void $onAppFocusLost();
MCFOLD void $onAppFocusLost();

MCAPI void $onAppFocusGained();
MCFOLD void $onAppFocusGained();

MCAPI void $onAppTerminated();
MCFOLD void $onAppTerminated();

MCAPI void $onOperationModeChanged(::OperationMode const operationMode);
MCFOLD void $onOperationModeChanged(::OperationMode const operationMode);

MCAPI void $onPerformanceModeChanged(bool const boost);
MCFOLD void $onPerformanceModeChanged(bool const boost);

MCAPI void $onPushNotificationReceived(::PushNotificationMessage const& msg);
MCFOLD void $onPushNotificationReceived(::PushNotificationMessage const& msg);

MCAPI void $onResizeBegin();
MCFOLD void $onResizeBegin();

MCAPI void $onResizeEnd();
MCFOLD void $onResizeEnd();

MCAPI void $onDeviceLost();
MCFOLD void $onDeviceLost();

MCAPI void $onAppSurfaceCreated();
MCFOLD void $onAppSurfaceCreated();

MCAPI void $onAppSurfaceDestroyed();
MCFOLD void $onAppSurfaceDestroyed();

MCAPI void $onClipboardCopy(::std::string const&);
MCFOLD void $onClipboardCopy(::std::string const&);

MCAPI void $onClipboardPaste(::std::string const&);
MCFOLD void $onClipboardPaste(::std::string const&);
// NOLINTEND

public:
Expand Down
10 changes: 5 additions & 5 deletions src/mc/common/BrazeSDKManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ class BrazeSDKManager : public ::std::enable_shared_from_this<::BrazeSDKManager>
public:
// virtual function thunks
// NOLINTBEGIN
MCAPI void $enableBrazeSDK();
MCFOLD void $enableBrazeSDK();

MCAPI void $disableBrazeSDK();
MCFOLD void $disableBrazeSDK();

MCAPI void $setBrazeId(::std::string const&);
MCFOLD void $setBrazeId(::std::string const&);

MCAPI void $_enableBrazeSDK();
MCFOLD void $_enableBrazeSDK();

MCAPI void $_disableBrazeSDK();
MCFOLD void $_disableBrazeSDK();
// NOLINTEND

public:
Expand Down
4 changes: 2 additions & 2 deletions src/mc/common/Brightness.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct Brightness : public ::NewType<uchar> {

MCAPI Brightness(::Brightness const&);

MCAPI ::Brightness& operator=(::Brightness&&);
MCFOLD ::Brightness& operator=(::Brightness&&);

MCAPI ::Brightness& operator=(::Brightness const&);
// NOLINTEND
Expand All @@ -31,7 +31,7 @@ struct Brightness : public ::NewType<uchar> {
public:
// constructor thunks
// NOLINTBEGIN
MCAPI void* $ctor(uchar const&);
MCFOLD void* $ctor(uchar const&);

MCAPI void* $ctor(::Brightness const&);
// NOLINTEND
Expand Down
2 changes: 1 addition & 1 deletion src/mc/common/BuildInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct BuildInfo {
public:
// destructor thunk
// NOLINTBEGIN
MCAPI void $dtor();
MCFOLD void $dtor();
// NOLINTEND
};

Expand Down
2 changes: 1 addition & 1 deletion src/mc/common/EditorBootstrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class EditorBootstrapper : public ::Bedrock::EnableNonOwnerReferences {
public:
// member functions
// NOLINTBEGIN
MCAPI bool isEditorModeEnabled() const;
MCFOLD bool isEditorModeEnabled() const;

MCAPI void processActivationArguments(::Bedrock::ActivationArguments const& args);

Expand Down
Loading

0 comments on commit 4b6f16c

Please sign in to comment.