Feat/accept cmd args (#2)

* make working dir as executable dir

* Add support for cli args
This commit is contained in:
Łukasz Kwiecień
2024-03-14 21:06:34 +01:00
committed by GitHub
parent c4daf3ec71
commit fc48cca110
5 changed files with 180 additions and 13 deletions

View File

@ -86,14 +86,14 @@ func (this *FullParams) RemoveFlags(newflag eFullParamsFlags) {
this.cStruct.Flags = this.cStruct.Flags ^ newflag
}
func (this *FullParams) SetLanguage(language eLanguage) {
func (this *FullParams) SetLanguage(language int32) {
if this == nil {
return
} else if this.cStruct == nil {
return
}
this.cStruct.Language = language
this.cStruct.Language = eLanguage(language)
}
/*using pfnNewSegment = HRESULT( __cdecl* )( iContext* ctx, uint32_t n_new, void* user_data ) noexcept;*/