Skip to content

Commit

Permalink
SDK update
Browse files Browse the repository at this point in the history
  • Loading branch information
zziger committed May 19, 2023
1 parent 4e1d548 commit e7e7d28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/coreclr/CoreClr.cpp
Expand Up @@ -148,7 +148,7 @@ void CoreClr::Initialize(progressfn_t progress) {
bool CoreClr::StartResource(alt::IResource* resource, alt::ICore* core) {
if (!load_resource_delegate)
{
Initialize([](alt::InitState state, float progress, float total) {});
Initialize([](alt::InitState state, float progress, float total, int) {});
}

const auto path = utils::string_to_wstring(resource->GetMain());
Expand Down
4 changes: 2 additions & 2 deletions client/src/coreclr/CoreClr.h
Expand Up @@ -12,7 +12,7 @@

typedef int (* CoreClrDelegate_t)(void* args, int argsLength);

typedef std::function<void(alt::InitState state, float progress, float total)> progressfn_t;
typedef std::function<void(alt::InitState state, float progress, float total, int)> progressfn_t;

struct Progress
{
Expand All @@ -23,7 +23,7 @@ struct Progress

void Update() const
{
updateFn(state, current, total);
updateFn(state, current, total, 1000);
}

void Advance(float value)
Expand Down
2 changes: 1 addition & 1 deletion client/src/runtime/CSharpScriptRuntime.h
Expand Up @@ -8,7 +8,7 @@ class CSharpScriptRuntime : public alt::IScriptRuntime {

alt::IResource::Impl * CreateImpl(alt::IResource *resource) override;
void DestroyImpl(alt::IResource::Impl *impl) override;
void Init(std::function<void(bool success, std::string error)> next, std::function<void(alt::InitState state, float progress, float total)> setProgress) override;
void Init(std::function<void(bool success, std::string error)> next, std::function<void(alt::InitState state, float progress, float total, int)> setProgress) override;

CoreClr clr;

Expand Down
2 changes: 1 addition & 1 deletion cpp-sdk

0 comments on commit e7e7d28

Please sign in to comment.