Skip to content

Update init.cpp to allow for the plugin to be used in the English version. - #1

Closed
Ecstaticoder wants to merge 1 commit into
nazonoSAUNA:r43_ss_71from
Ecstaticoder:r43_ss_71
Closed

Ecstaticoder wants to merge 1 commit into
nazonoSAUNA:r43_ss_71from
Ecstaticoder:r43_ss_71

Conversation

@Ecstaticoder

Copy link
Copy Markdown

関係する Issue
関係する Issue の番号を以下に書いてください。

変更点
この PR での変更点について教えてください。

  • Addition of a line that allows the plugin to be used in the English translated version.
  • 英語翻訳版でプラグインを利用できるようにするための行を追加する。

内容の精査
以下の点について教えてください。

  • コードにおかしな点がないことを確認しました。
  • 実際にビルドして試しました。

備考
Parts of this description has been translated using DeepL. I have all the requirements for building patch.aul but I couldn't compile the plugin because of an issue with cl.hpp giving syntax errors. This uses code from ePi5131#105.
この説明の一部は DeepL を使用して翻訳されています。私の方では patch.aul をビルドするための要件はすべて整っていますが、cl.hpp の構文エラーに問題があり、プラグインをコンパイルできませんでした。ePi5131#105 にあるコードを使用しました。

Uses code from ePi5131#105.
@nazonoSAUNA

Copy link
Copy Markdown
Owner

https://github.com/nazonoSAUNA/patch.aul/blob/r43_ss_71/patch/init.cpp#L678
単純に条件を追加するというのは、さらに別の言語を想定する場合に問題になるので別の方法にしました。

AviUtlのバージョン判定と同様の方法にします。特定のアドレスのバイナリを読み込み、対応バージョンのバイナリと一致しているかを判定します。
AviUtlのバージョン判定は特定のアドレスが"1.10"であれば対応とみなします。
拡張編集のバージョン判定は特定のアドレスが(int)9200であれば対応とみなすように変更します。この9200は拡張編集のバージョン情報を取得できる関数の部分です。

@Ecstaticoder

Copy link
Copy Markdown
Author

これは修正されているので、これをオープンにしておく必要はないようです。
(papagoで翻訳しました)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants