mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-21 14:55:27 -04:00
More pragma once (#7081)
libultraship uses pragma once, we were already using it in many headers
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef FILE_SELECT_ENHANCEMENTS_H
|
||||
#define FILE_SELECT_ENHANCEMENTS_H
|
||||
#pragma once
|
||||
|
||||
#include "z64.h"
|
||||
|
||||
@@ -20,5 +19,3 @@ typedef enum {
|
||||
RSM_NO_RANDOMIZER_GENERATED,
|
||||
RSM_MAX,
|
||||
} RandomizerSettingsMenuEnums;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <ship/window/gui/GuiWindow.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#ifndef _BOOTCOMMANDS_H_
|
||||
#define _BOOTCOMMANDS_H_
|
||||
#pragma once
|
||||
|
||||
void BootCommands_Init();
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,3 @@
|
||||
#ifndef MOUSE_H
|
||||
#define MOUSE_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <libultraship/libultra.h>
|
||||
@@ -20,6 +17,3 @@ void Mouse_UpdateQuickspinCount();
|
||||
#ifdef __cplusplus
|
||||
}; // extern "C"
|
||||
#endif
|
||||
|
||||
// MOUSE_H
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
typedef enum {
|
||||
COLORSCHEME_N64,
|
||||
COLORSCHEME_GAMECUBE,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CUSTOMMESSAGEDEBUGGER_H
|
||||
#define CUSTOMMESSAGEDEBUGGER_H
|
||||
#pragma once
|
||||
|
||||
#include "z64.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -56,4 +56,3 @@ class MessageViewer final : public Ship::GuiWindow {
|
||||
};
|
||||
|
||||
#endif //__cplusplus
|
||||
#endif // CUSTOMMESSAGEDEBUGGER_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SOH_CONSOLE_H
|
||||
#define SOH_CONSOLE_H
|
||||
#pragma once
|
||||
|
||||
#include <ship/window/gui/ConsoleWindow.h>
|
||||
|
||||
@@ -10,5 +9,3 @@ class SohConsoleWindow : public Ship::ConsoleWindow {
|
||||
protected:
|
||||
void DrawElement() override;
|
||||
};
|
||||
|
||||
#endif // SOH_CONSOLE_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SOH_GFX_DEBUGGER_H
|
||||
#define SOH_GFX_DEBUGGER_H
|
||||
#pragma once
|
||||
|
||||
#include <libultraship/window/gui/GfxDebuggerWindow.h>
|
||||
|
||||
@@ -12,5 +11,3 @@ class SohGfxDebuggerWindow : public LUS::GfxDebuggerWindow {
|
||||
void UpdateElement() override;
|
||||
void DrawElement() override;
|
||||
};
|
||||
|
||||
#endif // SOH_GFX_DEBUGGER_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SOH_STATS_H
|
||||
#define SOH_STATS_H
|
||||
#pragma once
|
||||
|
||||
#include <ship/window/gui/GuiWindow.h>
|
||||
|
||||
@@ -13,5 +12,3 @@ class SohStatsWindow final : public Ship::GuiWindow {
|
||||
void DrawElement() override;
|
||||
void UpdateElement() override{};
|
||||
};
|
||||
|
||||
#endif // SOH_STATS_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef hookDebugger_h
|
||||
#define hookDebugger_h
|
||||
#pragma once
|
||||
|
||||
#include <ship/window/gui/GuiWindow.h>
|
||||
|
||||
@@ -11,5 +10,3 @@ class HookDebuggerWindow final : public Ship::GuiWindow {
|
||||
void DrawElement() override;
|
||||
void UpdateElement() override{};
|
||||
};
|
||||
|
||||
#endif // hookDebugger_h
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _ENHANCEMENT_TYPES_H_
|
||||
#define _ENHANCEMENT_TYPES_H_
|
||||
#pragma once
|
||||
|
||||
typedef enum {
|
||||
WARP_MODE_OVERRIDE_OFF,
|
||||
@@ -147,5 +146,3 @@ typedef enum {
|
||||
TELEPORT_TRAP_SIMPLE,
|
||||
TELEPORT_TRAP_ADVANCED,
|
||||
} TeleportTrapMode;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef GameInteractionEffect_h
|
||||
#define GameInteractionEffect_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -267,4 +264,3 @@ class SpawnActor : public GameInteractionEffectBase, public ParameterizedGameInt
|
||||
} // namespace GameInteractionEffect
|
||||
|
||||
#endif /* __cplusplus */
|
||||
#endif /* GameInteractionEffect_h */
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef GameInteractor_h
|
||||
#define GameInteractor_h
|
||||
|
||||
#include <libultraship/bridge/consolevariablebridge.h>
|
||||
#include "vanilla-behavior/GIVanillaBehavior.h"
|
||||
|
||||
@@ -578,4 +575,3 @@ class GameInteractor {
|
||||
#undef GET_CURRENT_REGISTERING_INFO
|
||||
|
||||
#endif /* __cplusplus */
|
||||
#endif /* GameInteractor_h */
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef GI_VANILLA_BEHAVIOR_H
|
||||
#define GI_VANILLA_BEHAVIOR_H
|
||||
|
||||
typedef enum {
|
||||
// #### `result`
|
||||
// ```c
|
||||
@@ -3751,5 +3748,3 @@ typedef enum {
|
||||
// - `*EnBox`
|
||||
VB_CHEST_CONSIDER_CHEST_OPEN,
|
||||
} GIVanillaBehavior;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _GAMECONSOLE_H_
|
||||
#define _GAMECONSOLE_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <libultraship/bridge/consolevariablebridge.h>
|
||||
@@ -36,5 +35,3 @@ s32 GameConsole_Split(char* str, char** argv);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <ship/window/gui/GuiWindow.h>
|
||||
|
||||
class GameplayStatsWindow final : public Ship::GuiWindow {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef KALEIDO_H
|
||||
#define KALEIDO_H
|
||||
#pragma once
|
||||
|
||||
#include <z64.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -176,5 +176,3 @@ void RandoKaleido_UpdateMiscCollectibles(int16_t inDungeonScene);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // KALEIDO_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef NAMETAG_H
|
||||
#define NAMETAG_H
|
||||
#pragma once
|
||||
|
||||
#include <libultraship/color.h>
|
||||
|
||||
@@ -31,5 +30,3 @@ void NameTag_RemoveAllByTag(const char* tag);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NAMETAG_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#ifndef PLANDOMIZER_H
|
||||
#define PLANDOMIZER_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -10,8 +8,6 @@ extern "C" {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // PLANDOMIZER_H
|
||||
|
||||
#include <ship/window/gui/GuiWindow.h>
|
||||
#include "soh/Enhancements/randomizer/item.h"
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#ifndef ROCS_FEATHER_H
|
||||
#define ROCS_FEATHER_H
|
||||
#pragma once
|
||||
|
||||
#include <z64.h>
|
||||
|
||||
uint8_t Enhancement_GetNextNayrusItem();
|
||||
uint8_t Enhancement_GetPrevNayrusItem();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SHUFFLEROCKS_H
|
||||
#define SHUFFLEROCKS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -8,5 +7,3 @@ void EnIshi_RandomizerInit(void* actorRef);
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // SHUFFLEROCKS_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef Z_ADULT_TRADE_SHUFFLE_H
|
||||
#define Z_ADULT_TRADE_SHUFFLE_H
|
||||
#pragma once
|
||||
|
||||
#include <libultraship/libultra/types.h>
|
||||
|
||||
@@ -7,5 +6,3 @@ u8 Randomizer_GetNextChildTradeItem();
|
||||
u8 Randomizer_GetPrevChildTradeItem();
|
||||
u8 Randomizer_GetNextAdultTradeItem();
|
||||
u8 Randomizer_GetPrevAdultTradeItem();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#ifndef RANDODRAW_H
|
||||
#define RANDODRAW_H
|
||||
#pragma once
|
||||
|
||||
#include "../item-tables/ItemTableTypes.h"
|
||||
@@ -45,5 +43,3 @@ void Randomizer_DrawStickBag(PlayState* play, GetItemEntry* getItemEntry);
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#ifndef FISHSANITY_H
|
||||
#define FISHSANITY_H
|
||||
#pragma once
|
||||
|
||||
#include <z64.h>
|
||||
@@ -209,5 +207,3 @@ void Fishsanity_CloseGreyscaleColor(PlayState* play);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // FISHSANITY_H
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef ITEM_CATEGORY_ADJ_H
|
||||
#define ITEM_CATEGORY_ADJ_H
|
||||
|
||||
#include "../item-tables/ItemTableTypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -14,5 +11,3 @@ GetItemCategory Randomizer_AdjustItemCategory(GetItemEntry item);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef RANDOPTION_H
|
||||
#define RANDOPTION_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <set>
|
||||
#include <string>
|
||||
@@ -521,5 +518,3 @@ class OptionGroup {
|
||||
bool mDisabled = false;
|
||||
};
|
||||
} // namespace Rando
|
||||
|
||||
#endif // RANDOPTION_H
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef RANDOHASH_H
|
||||
#define RANDOHASH_H
|
||||
|
||||
#include "randomizerTypes.h"
|
||||
#include <array>
|
||||
#include <textures/icon_item_static/icon_item_static.h>
|
||||
@@ -110,4 +107,3 @@ inline std::array<Sprite, 100> gSeedTextures = { {
|
||||
{ dgQuestIconMagicJarSmallTex, 24, 24, G_IM_FMT_RGBA, G_IM_SIZ_32b, 98 },
|
||||
{ dgQuestIconMagicJarBigTex, 24, 24, G_IM_FMT_RGBA, G_IM_SIZ_32b, 99 },
|
||||
} };
|
||||
#endif
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _RANDO_ENTRANCE_H_
|
||||
#define _RANDO_ENTRANCE_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -55,5 +54,3 @@ void Entrance_SetEntranceDiscovered(uint16_t entranceIndex, uint8_t isReversedEn
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //_RANDO_ENTRANCE_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _RANDO_GROTTO_H_
|
||||
#define _RANDO_GROTTO_H_
|
||||
#pragma once
|
||||
|
||||
#include "z64math.h"
|
||||
#include "z64actor.h"
|
||||
@@ -40,5 +39,3 @@ s8 Grotto_CurrentGrotto();
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif //_RANDO_GROTTO_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RANDOSAVEFILE_H
|
||||
#define RANDOSAVEFILE_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -10,5 +9,3 @@ void Randomizer_InitSaveFile();
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef TRICKS_H
|
||||
#define TRICKS_H
|
||||
|
||||
#include <imgui.h>
|
||||
#include "randomizerTypes.h"
|
||||
|
||||
@@ -31,5 +28,3 @@ class Tricks {
|
||||
static void DrawTagChips(const std::set<Tag>& rtTags, std::string trickName = "");
|
||||
};
|
||||
} // namespace Rando
|
||||
|
||||
#endif // TRICKS_H
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SAVE_STATES_H
|
||||
#define SAVE_STATES_H
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <queue>
|
||||
@@ -57,5 +56,3 @@ class SaveStateMgr {
|
||||
void ProcessSaveStateRequests(void);
|
||||
};
|
||||
extern std::shared_ptr<SaveStateMgr> gSaveStateMgr;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
// Created by David Chavez on 22.11.22.
|
||||
//
|
||||
|
||||
#ifndef SOHDarwinSpeechSynthesizer_h
|
||||
#define SOHDarwinSpeechSynthesizer_h
|
||||
#pragma once
|
||||
|
||||
#include "SpeechSynthesizer.h"
|
||||
|
||||
@@ -23,5 +22,3 @@ class DarwinSpeechSynthesizer : public SpeechSynthesizer {
|
||||
private:
|
||||
void* mSynthesizer;
|
||||
};
|
||||
|
||||
#endif /* DarwinSpeechSynthesizer_h */
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
// Created by David Chavez on 22.11.22.
|
||||
//
|
||||
|
||||
#ifndef SOHSAPISpeechSynthesizer_h
|
||||
#define SOHSAPISpeechSynthesizer_h
|
||||
#pragma once
|
||||
|
||||
#include "SpeechSynthesizer.h"
|
||||
#include <stdio.h>
|
||||
@@ -21,5 +20,3 @@ class SAPISpeechSynthesizer : public SpeechSynthesizer {
|
||||
bool DoInit(void);
|
||||
void DoUninitialize(void);
|
||||
};
|
||||
|
||||
#endif /* SAPISpeechSynthesizer_h */
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SOHSpeechLogger_h
|
||||
#define SOHSpeechLogger_h
|
||||
#pragma once
|
||||
|
||||
#include "SpeechSynthesizer.h"
|
||||
|
||||
@@ -13,5 +12,3 @@ class SpeechLogger : public SpeechSynthesizer {
|
||||
bool DoInit(void);
|
||||
void DoUninitialize(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
// Created by David Chavez on 22.11.22.
|
||||
//
|
||||
|
||||
#ifndef SOHSpeechSynthesizer_h
|
||||
#define SOHSpeechSynthesizer_h
|
||||
#pragma once
|
||||
|
||||
class SpeechSynthesizer {
|
||||
public:
|
||||
@@ -27,8 +26,6 @@ class SpeechSynthesizer {
|
||||
bool mInitialized;
|
||||
};
|
||||
|
||||
#endif /* SpeechSynthesizer_h */
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "SAPISpeechSynthesizer.h"
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#ifndef TIMESPLITS_H
|
||||
#define TIMESPLITS_H
|
||||
|
||||
#include <ship/window/gui/GuiWindow.h>
|
||||
|
||||
@@ -54,5 +52,3 @@ typedef struct {
|
||||
} SplitObject;
|
||||
|
||||
#endif
|
||||
|
||||
#endif // TIMESPLITS_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef EXTRACT_H
|
||||
#define EXTRACT_H
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <stdint.h>
|
||||
@@ -67,4 +66,3 @@ class Extractor {
|
||||
std::atomic<size_t>* totalExtract);
|
||||
std::string Mkdtemp();
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef TORCHEXTRACT_H
|
||||
#define TORCHEXTRACT_H
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <cstddef>
|
||||
@@ -20,5 +19,3 @@ std::string Extract(const std::string& romPath, const std::string& srcDir, const
|
||||
const std::string& portVersion, std::atomic<size_t>* progress);
|
||||
|
||||
} // namespace SohTorch
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#ifndef GAME_VERSION_H
|
||||
#define GAME_VERSION_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#define OOT_NTSC_US_10 0xEC7011B7
|
||||
@@ -24,5 +21,3 @@
|
||||
#define OOT_IQUE_TW 0x3D81FB3E
|
||||
#define OOT_IQUE_CN 0xB1E1E07B
|
||||
#define UNKNOWN_GAME_VERSION 0xFFFFFFFF
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef NETWORK_ANCHOR_H
|
||||
#define NETWORK_ANCHOR_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "soh/Network/Network.h"
|
||||
@@ -196,4 +196,3 @@ class AnchorRoomWindow : public Ship::GuiWindow {
|
||||
};
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // NETWORK_ANCHOR_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef NETWORK_ANCHOR_JSON_CONVERSIONS_H
|
||||
#define NETWORK_ANCHOR_JSON_CONVERSIONS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
@@ -209,4 +209,3 @@ inline void from_json(const json& j, SaveContext& saveContext) {
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // NETWORK_ANCHOR_JSON_CONVERSIONS_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef NETWORK_CROWD_CONTROL_H
|
||||
#define NETWORK_CROWD_CONTROL_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <thread>
|
||||
@@ -87,4 +87,3 @@ class CrowdControl : public Network {
|
||||
};
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // NETWORK_CROWD_CONTROL_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <thread>
|
||||
@@ -46,4 +46,3 @@ class Network {
|
||||
};
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // NETWORK_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef NETWORK_SAIL_H
|
||||
#define NETWORK_SAIL_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <memory>
|
||||
@@ -23,4 +23,3 @@ class Sail : public Network {
|
||||
};
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // NETWORK_SAIL_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef NOTIFICATION_H
|
||||
#define NOTIFICATION_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <string>
|
||||
@@ -35,4 +35,3 @@ void Emit(Options notification);
|
||||
} // namespace Notification
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // NOTIFICATION_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef ACTOR_LIST_INDEX_H
|
||||
#define ACTOR_LIST_INDEX_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -12,5 +11,3 @@ void SetActorListIndex(const Actor* actor, int16_t index);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // ACTOR_LIST_INDEX_H
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef ACTOR_MAXIMUM_HEALTH_H
|
||||
#define ACTOR_MAXIMUM_HEALTH_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -13,5 +12,3 @@ void SetActorMaximumHealth(const Actor* actor, u8 maximumHealth);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // ACTOR_MAXIMUM_HEALTH_H
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SHIP_INIT_HPP
|
||||
#define SHIP_INIT_HPP
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -71,5 +70,3 @@ struct RegisterShipInitFunc {
|
||||
};
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // SHIP_INIT_HPP
|
||||
|
||||
+1
-4
@@ -1,5 +1,4 @@
|
||||
#ifndef SHIP_UTILS_H
|
||||
#define SHIP_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include <libultraship/libultra.h>
|
||||
|
||||
@@ -76,5 +75,3 @@ template <typename T, size_t size> void Shuffle(std::array<T, size>& arr, uint64
|
||||
}
|
||||
} // namespace ShipUtils
|
||||
#endif
|
||||
|
||||
#endif // SHIP_UTILS_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SHIP_BACKENDTYPES_H
|
||||
#define SHIP_BACKENDTYPES_H
|
||||
#pragma once
|
||||
|
||||
#include <fast/Fast3dWindow.h>
|
||||
#include <ship/audio/Audio.h>
|
||||
@@ -16,5 +15,3 @@ static const std::map<Fast::WindowBackend, const char*> windowBackendsMap = {
|
||||
{ Fast::WindowBackend::FAST3D_SDL_OPENGL, "OpenGL" },
|
||||
{ Fast::WindowBackend::FAST3D_SDL_METAL, "Metal" },
|
||||
};
|
||||
|
||||
#endif // SHIP_BACKENDTYPES_H
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#ifndef IM_GUI_UTILS_H
|
||||
#define IM_GUI_UTILS_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <imgui.h>
|
||||
@@ -68,5 +65,3 @@ extern std::map<QuestItem, SongMapEntry> songMapping;
|
||||
|
||||
// Maps song ids to info for use in ImGui
|
||||
extern std::array<SongMapEntry, 12> vanillaSongMapping;
|
||||
|
||||
#endif // IM_GUI_UTILS_H
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MENU_H
|
||||
#define MENU_H
|
||||
#pragma once
|
||||
|
||||
#include <libultraship/libultra.h>
|
||||
#include <ship/audio/Audio.h>
|
||||
@@ -68,5 +67,3 @@ class Menu : public GuiWindow {
|
||||
UIWidgets::Colors menuThemeIndex;
|
||||
};
|
||||
} // namespace Ship
|
||||
|
||||
#endif // MENU_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MENUTYPES_H
|
||||
#define MENUTYPES_H
|
||||
#pragma once
|
||||
|
||||
#include <variant>
|
||||
|
||||
@@ -319,5 +318,3 @@ struct RegisterMenuUpdateFunc {
|
||||
menuUpdateFuncs[sectionName][sidebarName].push_back(updateFunc);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MENUTYPES_H
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
#ifndef RESOLUTIONEDITOR_H
|
||||
#define RESOLUTIONEDITOR_H
|
||||
#pragma once
|
||||
|
||||
namespace SohGui {
|
||||
bool IsDroppingFrames();
|
||||
void RegisterResolutionWidgets();
|
||||
void UpdateResolutionVars();
|
||||
} // namespace SohGui
|
||||
|
||||
#endif // RESOLUTIONEDITOR_H
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
// Created by David Chavez on 24.08.22.
|
||||
//
|
||||
|
||||
#ifndef SohGui_hpp
|
||||
#define SohGui_hpp
|
||||
#pragma once
|
||||
|
||||
#include "SohMenu.h"
|
||||
#include "soh/Enhancements/audio/AudioEditor.h"
|
||||
@@ -49,5 +48,3 @@ void DrawStartingItemsMenu(WidgetInfo& info);
|
||||
} // namespace SohGui
|
||||
|
||||
#define THEME_COLOR SohGui::GetMenuThemeColor()
|
||||
|
||||
#endif /* SohGui_hpp */
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SOHMENU_H
|
||||
#define SOHMENU_H
|
||||
#pragma once
|
||||
|
||||
#include "Menu.h"
|
||||
|
||||
@@ -52,5 +51,3 @@ class SohMenu : public Ship::Menu {
|
||||
bool mMenuElementsInitialized = false;
|
||||
};
|
||||
} // namespace SohGui
|
||||
|
||||
#endif // SOHMENU_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef UIWidgetOptions_hpp
|
||||
#define UIWidgetOptions_hpp
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@@ -589,5 +588,4 @@ struct InputOptions : WidgetOptions {
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
}; // namespace UIWidgets
|
||||
#endif /* UIWidgetOptions_hpp */
|
||||
}; // namespace UIWidgets
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef UIWidgets2_hpp
|
||||
#define UIWidgets2_hpp
|
||||
#pragma once
|
||||
|
||||
#include "UIWidgetOptions.hpp"
|
||||
|
||||
@@ -552,5 +551,3 @@ ImVec4 GetRandomValue(uint64_t* state = nullptr);
|
||||
|
||||
Color_RGBA8 RGBA8FromVec(ImVec4 vec);
|
||||
ImVec4 VecFromRGBA8(Color_RGBA8 color);
|
||||
|
||||
#endif /* UIWidgets_hpp */
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <ship/config/Config.h>
|
||||
|
||||
namespace SOH {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#define CVAR_RANDOMIZER_ENHANCEMENT(var) CVAR_PREFIX_RANDOMIZER_ENHANCEMENT "." var
|
||||
#define CVAR_RANDOMIZER_SETTING(var) CVAR_PREFIX_RANDOMIZER_SETTING "." var
|
||||
#define CVAR_COSMETIC(var) CVAR_PREFIX_COSMETIC "." var
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef FRAMEBUFFER_EFFECTS_H
|
||||
#define FRAMEBUFFER_EFFECTS_H
|
||||
#pragma once
|
||||
|
||||
#include <libultraship/libultra.h>
|
||||
|
||||
@@ -13,5 +12,3 @@ void FB_CopyToFramebuffer(Gfx** gfxp, s32 fb_src, s32 fb_dest, u8 oncePerFrame,
|
||||
void FB_WriteFramebufferSliceToCPU(Gfx** gfxp, void* buffer, u8 byteSwap);
|
||||
void FB_DrawFromFramebuffer(Gfx** gfxp, s32 fb, u8 alpha);
|
||||
void FB_DrawFromFramebufferScaled(Gfx** gfxp, s32 fb, u8 alpha, float scaleX, float scaleY);
|
||||
|
||||
#endif // FRAMEBUFFER_EFFECTS_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MQ_ASSET_HACKS_H
|
||||
#define MQ_ASSET_HACKS_H
|
||||
#pragma once
|
||||
|
||||
#include "align_asset_macro.h"
|
||||
|
||||
@@ -100,5 +99,3 @@ void* sSpiritTempleEntranceTextures_MQ[] = {
|
||||
gSpiritTempleDayEntranceTex_MQ,
|
||||
gSpiritTempleNightEntranceTex_MQ,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <ship/resource/Resource.h>
|
||||
#include "soh/OTRGlobals.h"
|
||||
#include "soh/cvar_prefixes.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <ship/resource/Resource.h>
|
||||
#include "soh/OTRGlobals.h"
|
||||
#include "soh/cvar_prefixes.h"
|
||||
|
||||
Reference in New Issue
Block a user