fix some warnings and use the damn FORCE_INLINE macro otherwise what's it there for
This commit is contained in:
@@ -6,7 +6,7 @@ struct App {
|
||||
App();
|
||||
~App() { Util::ClearRPC(); }
|
||||
void Run();
|
||||
inline void LoadROM(const std::string& path) {
|
||||
FORCE_INLINE void LoadROM(const std::string& path) {
|
||||
window.LoadROM(core, path);
|
||||
}
|
||||
private:
|
||||
|
||||
@@ -8,9 +8,9 @@ struct Settings {
|
||||
Settings(n64::Core&);
|
||||
~Settings();
|
||||
|
||||
inline float GetVolumeL() const { return volumeL; };
|
||||
inline float GetVolumeR() const { return volumeR; };
|
||||
inline bool GetLockChannels() const { return lockChannels; }
|
||||
FORCE_INLINE float GetVolumeL() const { return volumeL; };
|
||||
FORCE_INLINE float GetVolumeR() const { return volumeR; };
|
||||
FORCE_INLINE bool GetLockChannels() const { return lockChannels; }
|
||||
|
||||
void RenderWidget(bool& show);
|
||||
private:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include <imgui.h>
|
||||
|
||||
inline bool CreateComboList(const char* label, int* index, const char** items, int items_count) {
|
||||
FORCE_INLINE bool CreateComboList(const char* label, int* index, const char** items, int items_count) {
|
||||
if (ImGui::BeginCombo(label, items[*index])) {
|
||||
for (int n = 0; n < items_count; n++) {
|
||||
const bool is_selected = (*index == n);
|
||||
|
||||
Reference in New Issue
Block a user