Skip to content

Commit

Permalink
add winmm.lib to inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Imrglop committed Nov 30, 2024
1 parent 198eea3 commit 2c303c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions LatiteRewrite.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>Dbghelp.lib;MinHook.lib;d3d11.lib;d3d12.lib;d2d1.lib;dwrite.lib;dxgi.lib;dxguid.lib;SHCore.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>winmm.lib;Dbghelp.lib;MinHook.lib;d3d11.lib;d3d12.lib;d2d1.lib;dwrite.lib;dxgi.lib;dxguid.lib;SHCore.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(TargetDir)$(TargetName)$(TargetExt)</OutputFile>
</Link>
</ItemDefinitionGroup>
Expand All @@ -264,7 +264,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>Dbghelp.lib;MinHook.lib;d3d11.lib;d3d12.lib;d2d1.lib;dwrite.lib;dxgi.lib;;dxguid.lib;SHCore.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>winmm.lib;Dbghelp.lib;MinHook.lib;d3d11.lib;d3d12.lib;d2d1.lib;dwrite.lib;dxgi.lib;;dxguid.lib;SHCore.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(TargetDir)$(TargetName)$(TargetExt)</OutputFile>
</Link>
</ItemDefinitionGroup>
Expand Down
6 changes: 5 additions & 1 deletion src/client/screen/script/JsScreen.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#include "pch.h"
#include "JsScreen.h"

JsScreen::JsScreen(JsValueRef object) {
JsScreen::JsScreen(JsValueRef object, JsValueRef renderFunc) : renderFunc(renderFunc) {

Chakra::GetStringProperty(object, L"name");
key = Chakra::GetIntProperty(object, L"key");

}

void JsScreen::onRender(Event& ev)
{
}

void JsScreen::onEnable(bool ignoreAnims) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/screen/script/JsScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class JsScreen : public Screen {
public:
JsScreen(JsValueRef object);
JsScreen(JsValueRef object, JsValueRef renderFunc);

void onRender(class Event& ev);
void onCleanup(Event& ev);
Expand Down

0 comments on commit 2c303c6

Please sign in to comment.