mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
2
.github/workflows/github.yml
vendored
2
.github/workflows/github.yml
vendored
@@ -244,7 +244,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Trigger Android
|
- name: Trigger Android
|
||||||
uses: peter-evans/repository-dispatch@v1
|
uses: peter-evans/repository-dispatch@v1
|
||||||
if: ${{ (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') && matrix.platform == 'mxe' }}
|
if: ${{ (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master') && matrix.platform == 'mxe' }}
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.VCMI_ANDROID_ACCESS_TOKEN }}
|
token: ${{ secrets.VCMI_ANDROID_ACCESS_TOKEN }}
|
||||||
repository: vcmi/vcmi-android
|
repository: vcmi/vcmi-android
|
||||||
|
|||||||
@@ -1118,14 +1118,11 @@ int main(int argc, char * argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef VCMI_ANDROID
|
#ifdef VCMI_ANDROID
|
||||||
void CVCMIServer::create(const std::vector<std::string> & args)
|
void CVCMIServer::create()
|
||||||
{
|
{
|
||||||
const char * foo = "android-server";
|
const char * foo = "android-server";
|
||||||
std::vector<const void *> argv = {foo};
|
std::vector<const void *> argv = {foo};
|
||||||
for(auto & a : args)
|
main(argv.size(), reinterpret_cast<char **>(const_cast<void **>(&*argv.begin())));
|
||||||
argv.push_back(a.c_str());
|
|
||||||
|
|
||||||
main(argv.size(), const_cast<char **>(foo));
|
|
||||||
}
|
}
|
||||||
#elif defined(SINGLE_PROCESS_APP)
|
#elif defined(SINGLE_PROCESS_APP)
|
||||||
void CVCMIServer::create(boost::condition_variable * cond, const std::vector<std::string> & args)
|
void CVCMIServer::create(boost::condition_variable * cond, const std::vector<std::string> & args)
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ public:
|
|||||||
ui8 getIdOfFirstUnallocatedPlayer() const;
|
ui8 getIdOfFirstUnallocatedPlayer() const;
|
||||||
|
|
||||||
#ifdef VCMI_ANDROID
|
#ifdef VCMI_ANDROID
|
||||||
static void create(const std::vector<std::string> & args);
|
static void create();
|
||||||
#elif defined(SINGLE_PROCESS_APP)
|
#elif defined(SINGLE_PROCESS_APP)
|
||||||
static void create(boost::condition_variable * cond, const std::vector<std::string> & args);
|
static void create(boost::condition_variable * cond, const std::vector<std::string> & args);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user