Skip to content

Commit

Permalink
remove all #include's for Language Defines
Browse files Browse the repository at this point in the history
scripted diff:

find . -type f -iname "*.h" -exec sed -i -E '/#include.*language\ defines\.h/I d' {} \;
find . -type f -iname "*.cpp" -exec sed -i -E '/#include.*language\ defines\.h/I d' {} \;
  • Loading branch information
majcosta committed Dec 27, 2024
1 parent 0993789 commit 897f684
Show file tree
Hide file tree
Showing 31 changed files with 0 additions and 32 deletions.
1 change: 0 additions & 1 deletion Ja2/Cheats.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _CHEATS__H_
#define _CHEATS__H_

#include "Language Defines.h"

extern UINT8 gubCheatLevel;

Expand Down
1 change: 0 additions & 1 deletion Ja2/Credits.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "Types.h"
#include "Credits.h"
#include "Language Defines.h"
#include "vsurface.h"
#include "mousesystem.h"
#include "Text.h"
Expand Down
1 change: 0 additions & 1 deletion Ja2/FeaturesScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "Text.h"
#include "Interface Control.h"
#include "Message.h"
#include "Language Defines.h"
#include "Multi Language Graphic Utils.h"
#include "Map Information.h"
#include "Sys Globals.h"
Expand Down
1 change: 0 additions & 1 deletion Ja2/GameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "GameVersion.h"
#include "LibraryDataBase.h"
#include "Debug.h"
#include "Language Defines.h"
#include "HelpScreen.h"
#include "INIReader.h"
#include "Shade Table Util.h"
Expand Down
1 change: 0 additions & 1 deletion Ja2/Options Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "Text.h"
#include "Interface Control.h"
#include "Message.h"
#include "Language Defines.h"
#include "Multi Language Graphic Utils.h"
#include "Map Information.h"
#include "SmokeEffects.h"
Expand Down
2 changes: 0 additions & 2 deletions Ja2/builddefines.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef _BUILDDEFINES_H
#define _BUILDDEFINES_H

#include "Language Defines.h"

//----- Briefing Room (Mission based JA2 like in JA/DG) - by Jazz -----
// Once enabled here and also enabled in the ja2_options.ini (BRIEFING_ROOM),
// you can access the briefing room feature from the laptop
Expand Down
1 change: 0 additions & 1 deletion Ja2/jascreens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include "Sound Control.h"
#include "WordWrap.h"
#include "text.h"
#include "Language Defines.h"
#include "IniReader.h"

#include "sgp_logger.h"
Expand Down
1 change: 0 additions & 1 deletion Laptop/AimMembers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "Strategic Status.h"
#include "Merc Contract.h"
#include "Strategic Merc Handler.h"
#include "Language Defines.h"
#include "Assignments.h"
#include "Sound Control.h"
#include "Quests.h"
Expand Down
1 change: 0 additions & 1 deletion Tactical/Interface Enhanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include "soldier macros.h"
#include "squads.h"
#include "MessageBoxScreen.h"
#include "Language Defines.h"
#include "GameSettings.h"
#include "Map Screen Interface Map Inventory.h"
#include "Quests.h"
Expand Down
1 change: 0 additions & 1 deletion Tactical/Interface Items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
#include "game clock.h"
#include "squads.h"
#include "MessageBoxScreen.h"
#include "Language Defines.h"
#include "GameSettings.h"
#include "Map Screen Interface Map Inventory.h"
#include "Quests.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/Encrypted File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "FileMan.h"
#include "Debug.h"

#include "Language Defines.h"
// anv: for selecting random line
#include "Random.h"

Expand Down
1 change: 0 additions & 1 deletion Utils/ImportStrings.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "ImportStrings.h"
#include "LocalizedStrings.h"
#include "Language Defines.h"

#include <vfs/Tools/vfs_tools.h>
#include <vfs/Core/vfs.h>
Expand Down
1 change: 0 additions & 1 deletion Utils/Multi Language Graphic Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "Types.h"
#include "Multi Language Graphic Utils.h"

#include "Language Defines.h"
//SB
#include "FileMan.h"

Expand Down
1 change: 0 additions & 1 deletion Utils/Multilingual Text Code Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ CREATED: Feb 16, 1999
#include "builddefines.h"
#include <stdio.h>
#include "types.h"
#include "Language Defines.h"
#include "debug.h"
#include "Fileman.h"

Expand Down
1 change: 0 additions & 1 deletion Utils/Utils All.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include "opplist.h"
#include "himage.h"
#include "vsurface_private.h"
#include "Language Defines.h"
#include "text.h"
#include "Screens.h"
#include "Maputility.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_ChineseText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("CHINESE")

#include "Language Defines.h"
#if defined( CHINESE )
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_DutchText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("DUTCH")

#include "Language Defines.h"
#if defined( DUTCH )
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_EnglishText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("ENGLISH")

#include "Language Defines.h"
#if defined( ENGLISH )
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_FrenchText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("FRENCH")

#include "Language Defines.h"
#ifdef FRENCH
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_GermanText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("GERMAN")

#include "Language Defines.h"
#ifdef GERMAN
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_ItalianText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("ITALIAN")

#include "Language Defines.h"
#if defined( ITALIAN )
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25ChineseText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("CHINESE")

#include "Language Defines.h"
#ifdef CHINESE
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25DutchText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("DUTCH")

#include "Language Defines.h"
#ifdef DUTCH
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25EnglishText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("ENGLISH")

#include "Language Defines.h"
#ifdef ENGLISH
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25FrenchText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("FRENCH")

#include "Language Defines.h"
#ifdef FRENCH
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25GermanText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("GERMAN")

#include "Language Defines.h"
#ifdef GERMAN
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25ItalianText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("ITALIAN")

#include "Language Defines.h"
#ifdef ITALIAN
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25PolishText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// WANNE: Yes we need this here exclusivly in Polish version, because we do not have a codepage in the code like for other versions.
//#pragma setlocale("POLISH")

#include "Language Defines.h"
#ifdef POLISH
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_Ja25RussianText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("RUSSIAN")

#include "Language Defines.h"
#ifdef RUSSIAN
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_PolishText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// WANNE: Yes we need this here exclusivly in Polish version, because we do not have a codepage in the code like for other versions.
//#pragma setlocale("POLISH")

#include "Language Defines.h"
#if defined( POLISH )
#include "text.h"
#include "Fileman.h"
Expand Down
1 change: 0 additions & 1 deletion Utils/_RussianText.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// WANNE: Yes, this should be disabled, otherwise we get weird behavior when running the game with a VS 2005 build!
//#pragma setlocale("RUSSIAN")

#include "Language Defines.h"
#if defined( RUSSIAN )
#include "text.h"
#include "Fileman.h"
Expand Down

0 comments on commit 897f684

Please sign in to comment.