Skip to content

Commit

Permalink
MCinaBox 添加说明文档
Browse files Browse the repository at this point in the history
  • Loading branch information
longjunyu2 committed Mar 11, 2020
1 parent abfd13d commit 26e0384
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 龙俊宇
Copyright (c) 2020 Junyu Long

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# MCinaBox - A Minecraft Java Edition Launcher on Android
## Table of Contents
- [Background](#Background)
- [Change Log](#Change-Log)
- [Install](#Install)
- [Usage](#Usage)
- [Preview](#Preview)
- [Known Issues](#Known-Issues)
- [Maintainers](#Maintainers)
- [Contributing](#Contributing)
- [Related Efforts](#Related-Efforts)
- [License](#License)

## Background

`Origin` I discovered the BoardwalkApp a few years ago, which can launch Minecraft Java Edition on Android devices. It's so exciting to see minecraft start on my phone. Thanks to Boardwalk, it left a deep impression on me, and since then I have also developed interest and love in programming. I learned Java programming for 8 days through 'Head First Java', and started to write my first Android program MCinaBox with the support of BoatApp Project.<br>
>zhuowei 's BoardwalkApp https://github.com/zhuowei/Boardwalk <br>
>CosineMath 's BoatApp https://github.com/CosineMath/BoatApp
## Change Log

### v0.1.0
- First debug edition.
- Did't finished yet.

## Install

### Environment
- Android Studio
- Android NDK
- Git

### Clone
- ```git clone https://github.com/longjunyu2/MCinaBox.git ```

### Import
- Import this project in your Android Studio.

### Build
- Build via Android Studio.

#### You can also get released apk from [here]().

## Usage
## Preview
## Known Issues
## Maintainers
[@longjunyu2](https://github.com/longjunyu2)

## Contributing
This project exists thanks to all the people who contribute.
## Related Efforts
>CosineMath 's BoatApp https://github.com/CosineMath/BoatApp
## License
MIT © Junyu Long
2 changes: 1 addition & 1 deletion boat/src/main/java/cosine/boat/BoatClientActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void surfaceCreated(SurfaceHolder holder) {
new Thread() {
@Override
public void run() {
ArgsModel argsModel = (ArgsModel) getIntent().getSerializableExtra("LauncherConfig");
LauncherConfig config = LauncherConfig.fromFile(getIntent().getExtras().getString("config"));
LoadMe.exec(config, BoatClientActivity.this);
Message msg = new Message();
Expand Down
9 changes: 9 additions & 0 deletions mcinabox/src/main/java/com/aof/mcinabox/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,15 @@ public void onDestroy() {
}
}

/**【当Activity停止时】**/
@Override
public void onStop(){
super.onStop();
SaveLauncherSettingToFile(LauncherConfigFile);
}

/**【当Activity】**/

/**
* 【当版本类型发生变化时】
**/
Expand Down

0 comments on commit 26e0384

Please sign in to comment.