Skip to content

Commit

Permalink
fix: Linker error with static
Browse files Browse the repository at this point in the history
- Note: enable global optimization again sometime later...
  • Loading branch information
alphanin9 committed Jan 24, 2025
1 parent a8c4dfb commit 201d6f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/redscript_api/NewGamePlusSystem.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <RED4ext/RED4ext.hpp>
#include <RedLib.hpp>

#include <redscript_api/NewGamePlusSystem.hpp>

#include <RED4ext/Scripting/Natives/Generated/gsm/MainQuest.hpp>
Expand Down Expand Up @@ -450,7 +453,6 @@ void mod::NewGamePlusSystem::OnGamePrepared()
m_modConfig = settings::GetModSettings();
}


// If we haven't restored, update NG+ config
if (!m_restoredDataFromSave)
{
Expand Down
3 changes: 1 addition & 2 deletions src/redscript_api/NewGamePlusSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class NewGamePlusSystem : public Red::IGameSystem

#pragma region Statics
// Note: Game systems are kept indefinitely, we can cache thisptr from OnInitialize here
static NewGamePlusSystem* s_this;
static inline NewGamePlusSystem* s_this;
#pragma endregion
public:
#pragma region API
Expand Down Expand Up @@ -106,7 +106,6 @@ class NewGamePlusSystem : public Red::IGameSystem
void RequestResolveNewGamePlusSaves(Red::DynArray<Red::CString> aSaves, Red::WeakHandle<IScriptable> aRef,
Red::CName aCallbackName);


void RequestLoadSaveData(Red::CString aSaveName, Red::WeakHandle<IScriptable> aTarget, Red::CName aCallbackName);

void Spew(Red::ScriptRef<Red::CString>& aStr);
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ add_cxxflags("/MP /GR- /EHsc")
set_symbols("debug")
set_strip("all")
set_optimize("fastest")
add_cxxflags("/Zi /Ob2 /Oi /GL")
add_cxxflags("/Zi /Ob2 /Oi")
set_runtimes("MD")

add_requires("lz4", "hopscotch-map", "semver", "wil")
Expand Down

0 comments on commit 201d6f1

Please sign in to comment.