mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-05 06:22:45 +01:00
fix some xcode 7.0 warnings
This commit is contained in:
parent
09f43c0975
commit
bafb7afba2
5 changed files with 8 additions and 6 deletions
|
@ -345,7 +345,7 @@ ResultCode FormatConfig() {
|
||||||
|
|
||||||
char16_t country_name_buffer[16][0x40] = {};
|
char16_t country_name_buffer[16][0x40] = {};
|
||||||
for (size_t i = 0; i < 16; ++i) {
|
for (size_t i = 0; i < 16; ++i) {
|
||||||
auto size = Common::UTF8ToUTF16("Gensokyo").copy(country_name_buffer[i], 0x40);
|
Common::UTF8ToUTF16("Gensokyo").copy(country_name_buffer[i], 0x40);
|
||||||
}
|
}
|
||||||
// 0x000B0001 - Localized names for the profile Country
|
// 0x000B0001 - Localized names for the profile Country
|
||||||
res = CreateConfigInfoBlk(0x000B0001, sizeof(country_name_buffer), 0xE, country_name_buffer);
|
res = CreateConfigInfoBlk(0x000B0001, sizeof(country_name_buffer), 0xE, country_name_buffer);
|
||||||
|
|
|
@ -143,11 +143,11 @@ void Recorder::Finish(const std::string& filename) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Recorder::FrameFinished() {
|
void Recorder::FrameFinished() {
|
||||||
stream.push_back( { FrameMarker } );
|
stream.push_back( { { FrameMarker } } );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Recorder::MemoryAccessed(const u8* data, u32 size, u32 physical_address) {
|
void Recorder::MemoryAccessed(const u8* data, u32 size, u32 physical_address) {
|
||||||
StreamElement element = { MemoryLoad };
|
StreamElement element = { { MemoryLoad } };
|
||||||
element.data.memory_load.size = size;
|
element.data.memory_load.size = size;
|
||||||
element.data.memory_load.physical_address = physical_address;
|
element.data.memory_load.physical_address = physical_address;
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ void Recorder::MemoryAccessed(const u8* data, u32 size, u32 physical_address) {
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void Recorder::RegisterWritten(u32 physical_address, T value) {
|
void Recorder::RegisterWritten(u32 physical_address, T value) {
|
||||||
StreamElement element = { RegisterWrite };
|
StreamElement element = { { RegisterWrite } };
|
||||||
element.data.register_write.size = (sizeof(T) == 1) ? CTRegisterWrite::SIZE_8
|
element.data.register_write.size = (sizeof(T) == 1) ? CTRegisterWrite::SIZE_8
|
||||||
: (sizeof(T) == 2) ? CTRegisterWrite::SIZE_16
|
: (sizeof(T) == 2) ? CTRegisterWrite::SIZE_16
|
||||||
: (sizeof(T) == 4) ? CTRegisterWrite::SIZE_32
|
: (sizeof(T) == 4) ? CTRegisterWrite::SIZE_32
|
||||||
|
|
|
@ -45,7 +45,6 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GraphicsDebugger* observed;
|
GraphicsDebugger* observed;
|
||||||
bool in_destruction;
|
|
||||||
|
|
||||||
friend class GraphicsDebugger;
|
friend class GraphicsDebugger;
|
||||||
};
|
};
|
||||||
|
|
|
@ -967,6 +967,8 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0,
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return {};
|
||||||
};
|
};
|
||||||
|
|
||||||
auto LookupFactorA = [&](Regs::BlendFactor factor) -> u8 {
|
auto LookupFactorA = [&](Regs::BlendFactor factor) -> u8 {
|
||||||
|
@ -1000,6 +1002,8 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0,
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return {};
|
||||||
};
|
};
|
||||||
|
|
||||||
static auto EvaluateBlendEquation = [](const Math::Vec4<u8>& src, const Math::Vec4<u8>& srcfactor,
|
static auto EvaluateBlendEquation = [](const Math::Vec4<u8>& src, const Math::Vec4<u8>& srcfactor,
|
||||||
|
|
|
@ -62,7 +62,6 @@ private:
|
||||||
const TextureInfo& texture);
|
const TextureInfo& texture);
|
||||||
|
|
||||||
EmuWindow* render_window; ///< Handle to render window
|
EmuWindow* render_window; ///< Handle to render window
|
||||||
u32 last_mode; ///< Last render mode
|
|
||||||
|
|
||||||
int resolution_width; ///< Current resolution width
|
int resolution_width; ///< Current resolution width
|
||||||
int resolution_height; ///< Current resolution height
|
int resolution_height; ///< Current resolution height
|
||||||
|
|
Loading…
Reference in a new issue