Skip to content

Commit

Permalink
up version ->0.5-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Aug 31, 2024
1 parent 54fb97b commit bfa98e8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pch.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#define EDITOR_VERSION_NUM "0.40"
#define EDITOR_VERSION_NUM "0.50"
#define EDITOR_VERSION EDITOR_VERSION_NUM"-beta"
#include <filesystem>
#include <windows.h>
Expand Down
30 changes: 24 additions & 6 deletions tools/Setup.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
rem Generate visual studio files and run the devcmd init
@echo off
set "projectdir=%CD%"

rem Set game paths below
set "OUT_DIR="E:\GTASanAndreas""
:find_vs_path
set "vs_path="
for %%d in (Community Preview Professional) do (
for /d %%e in ("C:\Program Files\Microsoft Visual Studio\2022\%%d") do (
if exist "%%e\Common7\Tools\VsDevCmd.bat" (
set "vs_path=%%e"
goto :vs_install_found
)
)
)
goto :eof

cd tools
:vs_install_found
if not defined vs_path (
echo Error: Visual Studio installation not found.
exit /b 1
)

:run_premake
cd "%projectdir%\tools"
premake5.exe vs2022
cd ../build
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"

:run_dev
cd "%projectdir%\build"
call %vs_path%"\Common7\Tools\VsDevCmd.bat"

0 comments on commit bfa98e8

Please sign in to comment.