added function changes nickname

This commit is contained in:
Alexander Popov 2013-11-23 06:10:07 +04:00
parent 47bbfa68e0
commit 0769ab9f44
2 changed files with 13 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
mc_start.exe

View File

@ -9,29 +9,37 @@ REM Trademarks:
REM Originalname: mc_start.exe REM Originalname: mc_start.exe
REM Comments: Script for launch Minecraft without official Mojang launcher REM Comments: Script for launch Minecraft without official Mojang launcher
REM Productversion: 1. 0. 0. 0 REM Productversion: 1. 0. 0. 0
REM Fileversion: 1. 1. 0. 0 REM Fileversion: 1. 2. 0. 0
REM Internalname: REM Internalname:
REM Appicon: minecraft.ico REM Appicon: minecraft.ico
REM AdministratorManifest: No REM AdministratorManifest: No
REM QBFC Project Options End REM QBFC Project Options End
ECHO ON ECHO ON
::
@echo off @echo off
cd \ cd \
:: main directory of the game :: main directory of the game
set MC_DIR="C:\IIIypuk\Minecraft" set MC_DIR="C:\IIIypuk\Minecraft"
:: look README.md file :: look README.md file
set NATIVES_DIR="%MC_DIR%\natives\1.7.2" set NATIVES_DIR="%MC_DIR%\natives\1.7.2"
:: Are stored here... :: Are stored here...
:: saves/, resourcepacks/ and screenshots/ dirs :: saves/, resourcepacks/ and screenshots/ dirs
:: and options.txt and servers.dat files :: and options.txt and servers.dat files
set GAME_DIR="%MC_DIR%\profile" set GAME_DIR="%MC_DIR%\profile"
:: libraries and resource dir (requires no changes) :: libraries and resource dir (requires no changes)
set ASSETS_DIR="%MC_DIR%\assets" set ASSETS_DIR="%MC_DIR%\assets"
set PLAYER="IIIypuk" :: player nickname (the over head) :: version minecraft (from versions/ dir)
set VERSION="1.7.2" :: version minecraft (from versions/ dir) set VERSION="1.7.2"
:: player nickname (the over head)
if /i not exist "%GAME_DIR%\nickname.txt" (
echo Steve > "%GAME_DIR%\nickname.txt"
)
set /p PLAYER= < "%GAME_DIR%\nickname.txt"
:: running minecraft :: running minecraft