Skip to content

Commit

Permalink
Fix actions and wrong links
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka committed Aug 3, 2024
1 parent d00fa0c commit 4fedf12
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake-multiple-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ on:
- README.md
- 'docs/**'
- 'generator/**'
- 'tests/**'
- 'test/**'
pull_request:
paths-ignore:
- LICENSE
- README.md
- 'docs/**'
- 'generator/**'
- 'tests/**'
- 'test/**'

env:
BUILD_TYPE: Release
Expand Down
4 changes: 2 additions & 2 deletions go-lang-module.pmodule.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"description": "Adds support for Go plugins",
"createdBy": "untrustedmodders",
"createdByURL": "https://github.com/untrustedmodders/",
"docsURL": "https://github.com/untrustedmodders/go-lang-module/README.md",
"docsURL": "https://github.com/untrustedmodders/go-lang-module/blob/main/README.md",
"downloadURL": "https://github.com/untrustedmodders/go-lang-module/releases/download/v${GOLM_VERSION}/${GOLM_PACKAGE}.zip",
"updateURL": "https://untrustedmodders.github.com/go-lang-module/go-lang-module.json",
"updateURL": "https://untrustedmodders.github.io/go-lang-module/go-lang-module.json",
"supportedPlatforms": [],
"forceLoad": false
}
4 changes: 4 additions & 0 deletions src/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ void GoLanguageModule::Shutdown() {
_provider.reset();
}

bool GoLanguageModule::IsDebugBuild() {
return GOLM_IS_DEBUG;
}

void GoLanguageModule::OnMethodExport(PluginRef plugin) {
for (const auto& [method, addr] : plugin.GetMethods()) {
_nativesMap.try_emplace(std::format("{}.{}", plugin.GetName(), method.GetName()), addr);
Expand Down
2 changes: 1 addition & 1 deletion src/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace golm {
void OnPluginStart(plugify::PluginRef plugin) override;
void OnPluginEnd(plugify::PluginRef plugin) override;
void OnMethodExport(plugify::PluginRef plugin) override;
bool IsDebugBuild() override { return GOLM_IS_DEBUG; };
bool IsDebugBuild() override;

const std::shared_ptr<plugify::IPlugifyProvider>& GetProvider() { return _provider; }
plugify::MemAddr GetNativeMethod(std::string_view methodName) const;
Expand Down

0 comments on commit 4fedf12

Please sign in to comment.